Class CoffeeGrinderException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.nineml.coffeegrinder.exceptions.CoffeeGrinderException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
AttributeException,ForestException,GrammarException,ParseException,TreeWalkerException
Exceptions raised by this API.
With a few exceptions (@{link NullPointerException} and IllegalArgumentException, for example),
subclasses of CoffeeGrinderException are used for all exceptions raised by this API.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCoffeeGrinderException(String code, String message) An exception with a message.CoffeeGrinderException(String code, String message, Throwable cause) An exception with an underlying cause. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
CoffeeGrinderException
An exception with a message.- Parameters:
code- the codemessage- the message
-
CoffeeGrinderException
An exception with an underlying cause.- Parameters:
code- the codemessage- the messagecause- the cause
-
-
Method Details
-
getCode
Get the error code.- Returns:
- the error code.
-