Package io.pebbletemplates.pebble.error
Class PebbleException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- io.pebbletemplates.pebble.error.PebbleException
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
AttributeNotFoundException,ClassAccessException,LoaderException,ParserException
public class PebbleException extends java.lang.RuntimeException- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.Stringfilenameprotected java.lang.IntegerlineNumberprotected java.lang.Stringmessageprivate static longserialVersionUID
-
Constructor Summary
Constructors Constructor Description PebbleException(java.lang.Throwable cause, java.lang.String message)PebbleException(java.lang.Throwable cause, java.lang.String message, java.lang.Integer lineNumber, java.lang.String filename)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetFileName()Returns the filename in which the exception was thrown.java.lang.IntegergetLineNumber()Returns the line number on which the exception was thrown.java.lang.StringgetPebbleMessage()Returns the message which is set for the exception by Pebble.
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
lineNumber
protected final java.lang.Integer lineNumber
-
filename
protected final java.lang.String filename
-
message
protected final java.lang.String message
-
-
Method Detail
-
getLineNumber
public java.lang.Integer getLineNumber()
Returns the line number on which the exception was thrown.- Returns:
- the line number on which the exception was thrown.
-
getFileName
public java.lang.String getFileName()
Returns the filename in which the exception was thrown.- Returns:
- the filename in which the exception was thrown.
-
getPebbleMessage
public java.lang.String getPebbleMessage()
Returns the message which is set for the exception by Pebble. Its the message which is not enhanced with the line number and filename.- Returns:
- the message which is set for the exception by Pebble.
-
-