Package org.antlr.runtime.tree
Class RewriteCardinalityException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.antlr.runtime.tree.RewriteCardinalityException
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
RewriteEarlyExitException
,RewriteEmptyStreamException
public class RewriteCardinalityException extends RuntimeException
Base class for all exceptions thrown during AST rewrite construction. This signifies a case where the cardinality of two or more elements in a subrule are different: (ID INT)+ where |ID|!=|INT|- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description String
elementDescription
-
Constructor Summary
Constructors Constructor Description RewriteCardinalityException(String elementDescription)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getMessage()
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Field Detail
-
elementDescription
public String elementDescription
-
-
Constructor Detail
-
RewriteCardinalityException
public RewriteCardinalityException(String elementDescription)
-
-
Method Detail
-
getMessage
public String getMessage()
- Overrides:
getMessage
in classThrowable
-
-