Class SemanticException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.github.douira.glsl_transformer.transform.SemanticException
- All Implemented Interfaces:
Serializable
The semantic exception should be thrown by a transformation phase when the
parsed code has semantic errors or there is some other content-related reason
why the transformation process should be halted.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new empty semantic exception.SemanticException(String message) Creates a new semantic exception with a message string.SemanticException(String message, ParseTree node) Creates a new semantic exception with a message string and a parse tree node. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
SemanticException
public SemanticException()Creates a new empty semantic exception. -
SemanticException
Creates a new semantic exception with a message string.- Parameters:
message- The message of the exception
-
SemanticException
Creates a new semantic exception with a message string and a parse tree node. The node can be given if the error occurred in a specific node or while processing a specific node.- Parameters:
message- The message of the exceptionnode- The parse tree node to store in the exception
-
-
Method Details
-
getNode
Returns the exception's parse tree node if there is one.- Returns:
- The node
-