public final class SemanticException
extends org.antlr.runtime.RecognitionException
SemanticException
exception is thrown by the translator (lexer, parser, tree walker
or other its parts) if it detects a semantic error in the translated specification.
All semantic errors found in the specification must be reported as
SemanticException
. In situations when an error is caused by issues in code (coding
mistakes, invariant violations, limitations) an unchecked exception inherited from
RuntimeException
must be thrown.
The SemanticException
exception is inherited from the RecognitionException
ANTLR exception to allow handling them in the same way.
Modifier and Type | Method and Description |
---|---|
ISemanticError |
getError() |
java.lang.String |
getMessage() |
Where |
getWhere() |
extractInformationFromTreeNodeStream, getUnexpectedType
public java.lang.String getMessage()
getMessage
in class java.lang.Throwable
public ISemanticError getError()
public Where getWhere()