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:
Serializable
- Direct Known Subclasses:
AttributeNotFoundException
,ClassAccessException
,LoaderException
,ParserException
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionPebbleException
(Throwable cause, String message) PebbleException
(Throwable cause, String message, Integer lineNumber, String filename) -
Method Summary
Modifier and TypeMethodDescriptionReturns the filename in which the exception was thrown.Returns the line number on which the exception was thrown.Returns the message which is set for the exception by Pebble.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
lineNumber
-
filename
-
message
-
-
Constructor Details
-
PebbleException
-
PebbleException
-
-
Method Details
-
getLineNumber
Returns the line number on which the exception was thrown.- Returns:
- the line number on which the exception was thrown.
-
getFileName
Returns the filename in which the exception was thrown.- Returns:
- the filename in which the exception was thrown.
-
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.
-