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
public class HandlebarsException extends RuntimeException
If 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, Throwable cause)
Creates a newHandlebarsException
.HandlebarsException(String message, Throwable cause)
Creates a newHandlebarsException
.HandlebarsException(Throwable cause)
Creates a newHandlebarsException
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HandlebarsError
getError()
A handlebars error.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
HandlebarsException
public HandlebarsException(HandlebarsError error)
Creates a newHandlebarsException
.- Parameters:
error
- The hbs error's. Required.
-
HandlebarsException
public HandlebarsException(Throwable cause)
Creates a newHandlebarsException
.- Parameters:
cause
- The error's cause.
-
HandlebarsException
public HandlebarsException(HandlebarsError error, Throwable cause)
Creates a newHandlebarsException
.- Parameters:
error
- The error's message.cause
- The error's cause.
-
HandlebarsException
public HandlebarsException(String message, 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.
-
-