public abstract class CoffeeGrinderException
extends java.lang.RuntimeException
With a few exceptions (@{link NullPointerException} and IllegalArgumentException
, for example),
subclasses of CoffeeGrinderException
are used for all exceptions raised by this API.
Constructor and 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.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCode()
Get the error code.
|
public CoffeeGrinderException(java.lang.String code, java.lang.String message)
code
- the codemessage
- the messagepublic CoffeeGrinderException(java.lang.String code, java.lang.String message, java.lang.Throwable cause)
code
- the codemessage
- the messagecause
- the cause