public class AttributeException extends CoffeeGrinderException
These are generally caused by errors in how the API is used.
| Constructor and Description |
|---|
AttributeException(java.lang.String code,
java.lang.String message)
An attribute exception with a message.
|
AttributeException(java.lang.String code,
java.lang.String message,
java.lang.Throwable cause)
An attribute exception with an underlying cause.
|
| Modifier and Type | Method and Description |
|---|---|
static AttributeException |
immutable(java.lang.String name,
java.lang.String value)
Raised if an attempt is made to modify an existing attribute.
|
static AttributeException |
invalidOPTIONAL(java.lang.String value)
Raised if an attempt is made to set an invalid option value.
|
getCodepublic AttributeException(java.lang.String code,
java.lang.String message)
code - the codemessage - the messagepublic AttributeException(java.lang.String code,
java.lang.String message,
java.lang.Throwable cause)
code - the codemessage - the messagecause - the causepublic static AttributeException invalidOPTIONAL(java.lang.String value)
value - the value.public static AttributeException immutable(java.lang.String name, java.lang.String value)
name - the attribute name.value - the value.