Package com.github.jknack.handlebars
Class HandlebarsException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.github.jknack.handlebars.HandlebarsException
- All Implemented Interfaces:
Serializable
If something goes wrong this exception will happen.
- Since:
- 0.1.0
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a newHandlebarsException.HandlebarsException(HandlebarsError error, Throwable cause) Creates a newHandlebarsException.HandlebarsException(String message, Throwable cause) Creates a newHandlebarsException.HandlebarsException(Throwable cause) Creates a newHandlebarsException. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
HandlebarsException
Creates a newHandlebarsException.- Parameters:
error- The hbs error's. Required.
-
HandlebarsException
Creates a newHandlebarsException.- Parameters:
cause- The error's cause.
-
HandlebarsException
Creates a newHandlebarsException.- Parameters:
error- The error's message.cause- The error's cause.
-
HandlebarsException
Creates a newHandlebarsException.- Parameters:
message- The error's message.cause- The error's cause.
-
-
Method Details
-
getError
A handlebars error.- Returns:
- A handlebars error. It might be null.
-