public class ForestException extends CoffeeGrinderException
These are generally caused by errors in how the API is used.
Constructor and Description |
---|
ForestException(java.lang.String code,
java.lang.String message)
An SPPF exception with a message.
|
ForestException(java.lang.String code,
java.lang.String message,
java.lang.Throwable cause)
An SPPF exception with an underlying cause.
|
Modifier and Type | Method and Description |
---|---|
static ForestException |
cannotAddChild(java.lang.String node)
A cannot-add-child exception.
|
static ForestException |
ioError(java.lang.String filename,
java.lang.Exception ex)
An I/O exception.
|
static ForestException |
noSuchNode(java.lang.String node)
A no-such-node exception.
|
getCode
public ForestException(java.lang.String code, java.lang.String message)
code
- the codemessage
- the messagepublic ForestException(java.lang.String code, java.lang.String message, java.lang.Throwable cause)
code
- the codemessage
- the messagecause
- the causepublic static ForestException ioError(java.lang.String filename, java.lang.Exception ex)
filename
- filename being accessed at the time of errorex
- the underlying exceptionpublic static ForestException noSuchNode(java.lang.String node)
This is an internal error.
node
- The node.public static ForestException cannotAddChild(java.lang.String node)
This is an internal error.
node
- The node.