Class CoffeeGrinderException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.nineml.coffeegrinder.exceptions.CoffeeGrinderException
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
AttributeException,ForestException,GrammarException,ParseException,TreeWalkerException
public abstract class CoffeeGrinderException extends java.lang.RuntimeExceptionExceptions raised by this API.With a few exceptions (@{link NullPointerException} and
IllegalArgumentException, for example), subclasses ofCoffeeGrinderExceptionare used for all exceptions raised by this API.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CoffeeGrinderException(java.lang.String code, java.lang.String message)An exception with a message.CoffeeGrinderException(java.lang.String code, java.lang.String message, java.lang.Throwable cause)An exception with an underlying cause.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetCode()Get the error code.
-
-
-
Constructor Detail
-
CoffeeGrinderException
public CoffeeGrinderException(java.lang.String code, java.lang.String message)An exception with a message.- Parameters:
code- the codemessage- the message
-
CoffeeGrinderException
public CoffeeGrinderException(java.lang.String code, java.lang.String message, java.lang.Throwable cause)An exception with an underlying cause.- Parameters:
code- the codemessage- the messagecause- the cause
-
-