public class TreeWalkerException extends CoffeeGrinderException
Tree walking exceptions are generally errors in the implementation of the tree walker.
| Constructor and Description | 
|---|
TreeWalkerException(java.lang.String code,
                   java.lang.String message)
Grammar exception with a message. 
 | 
TreeWalkerException(java.lang.String code,
                   java.lang.String message,
                   java.lang.Throwable cause)
Grammar exception with an underlying cause. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
static TreeWalkerException | 
internalError()
Raised if an internal error occurs. 
 | 
static TreeWalkerException | 
invalidChoiceSelected()
Raised if a  
Axe.select(org.nineml.coffeegrinder.trees.ParseTree, org.nineml.coffeegrinder.parser.ForestNode, int, java.util.List<org.nineml.coffeegrinder.parser.Family>) function returns an
 any elements not taken from the list of choices offered or any duplicates in the list of
 potential future choices. | 
static TreeWalkerException | 
noChoiceSelected()
Raised if a  
Axe.select(org.nineml.coffeegrinder.trees.ParseTree, org.nineml.coffeegrinder.parser.ForestNode, int, java.util.List<org.nineml.coffeegrinder.parser.Family>) function returns an
 empty list. | 
static TreeWalkerException | 
noMoreTrees()
Raised if an attempt is made to walk a tree when there are no more trees. 
 | 
static TreeWalkerException | 
noTrees()
Raised if an attempt is made to walk a tree when there are no trees. 
 | 
getCodepublic TreeWalkerException(java.lang.String code,
                           java.lang.String message)
code - the codemessage - the messagepublic TreeWalkerException(java.lang.String code,
                           java.lang.String message,
                           java.lang.Throwable cause)
code - the codemessage - the messagecause - the causepublic static TreeWalkerException noChoiceSelected()
Axe.select(org.nineml.coffeegrinder.trees.ParseTree, org.nineml.coffeegrinder.parser.ForestNode, int, java.util.List<org.nineml.coffeegrinder.parser.Family>) function returns an
 empty list.public static TreeWalkerException noMoreTrees()
public static TreeWalkerException internalError()
public static TreeWalkerException invalidChoiceSelected()
Axe.select(org.nineml.coffeegrinder.trees.ParseTree, org.nineml.coffeegrinder.parser.ForestNode, int, java.util.List<org.nineml.coffeegrinder.parser.Family>) function returns an
 any elements not taken from the list of choices offered or any duplicates in the list of
 potential future choices.public static TreeWalkerException noTrees()