com.github.jknack.handlebars
Class HandlebarsException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by 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
Author:
edgar.espina
See Also:
Serialized Form

Constructor Summary
HandlebarsException(HandlebarsError error)
          Creates a new HandlebarsException.
HandlebarsException(HandlebarsError error, Throwable cause)
          Creates a new HandlebarsException.
HandlebarsException(String message, Throwable cause)
          Creates a new HandlebarsException.
HandlebarsException(Throwable cause)
          Creates a new HandlebarsException.
 
Method Summary
 HandlebarsError getError()
          A handlebars error.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HandlebarsException

public HandlebarsException(HandlebarsError error)
Creates a new HandlebarsException.

Parameters:
error - The hbs error's. Required.

HandlebarsException

public HandlebarsException(Throwable cause)
Creates a new HandlebarsException.

Parameters:
cause - The error's cause.

HandlebarsException

public HandlebarsException(HandlebarsError error,
                           Throwable cause)
Creates a new HandlebarsException.

Parameters:
error - The error's message.
cause - The error's cause.

HandlebarsException

public HandlebarsException(String message,
                           Throwable cause)
Creates a new HandlebarsException.

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.


Copyright © 2012. All Rights Reserved.