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

public abstract class CoffeeGrinderException extends RuntimeException
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 Details

    • CoffeeGrinderException

      public CoffeeGrinderException(String code, String message)
      An exception with a message.
      Parameters:
      code - the code
      message - the message
    • CoffeeGrinderException

      public CoffeeGrinderException(String code, String message, Throwable cause)
      An exception with an underlying cause.
      Parameters:
      code - the code
      message - the message
      cause - the cause
  • Method Details

    • getCode

      public String getCode()
      Get the error code.
      Returns:
      the error code.