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:
java.io.Serializable
public class HandlebarsException extends java.lang.RuntimeExceptionIf something goes wrong this exception will happen.- Since:
- 0.1.0
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description HandlebarsException(HandlebarsError error)Creates a newHandlebarsException.HandlebarsException(HandlebarsError error, java.lang.Throwable cause)Creates a newHandlebarsException.HandlebarsException(java.lang.String message, java.lang.Throwable cause)Creates a newHandlebarsException.HandlebarsException(java.lang.Throwable cause)Creates a newHandlebarsException.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HandlebarsErrorgetError()A handlebars error.
-
-
-
Constructor Detail
-
HandlebarsException
public HandlebarsException(HandlebarsError error)
Creates a newHandlebarsException.- Parameters:
error- The hbs error's. Required.
-
HandlebarsException
public HandlebarsException(java.lang.Throwable cause)
Creates a newHandlebarsException.- Parameters:
cause- The error's cause.
-
HandlebarsException
public HandlebarsException(HandlebarsError error, java.lang.Throwable cause)
Creates a newHandlebarsException.- Parameters:
error- The error's message.cause- The error's cause.
-
HandlebarsException
public HandlebarsException(java.lang.String message, java.lang.Throwable cause)Creates a newHandlebarsException.- Parameters:
message- The error's message.cause- The error's cause.
-
-
Method Detail
-
getError
public HandlebarsError getError()
A handlebars error.- Returns:
- A handlebars error. It might be null.
-
-