Package exceptions
Class SemanticException
- java.lang.Object
-
- java.lang.Throwable
-
- exceptions.Exception
-
- exceptions.SemanticException
-
- All Implemented Interfaces:
java.io.Serializable
public final class SemanticException extends Exception
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SemanticException(java.lang.String message)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.StringunexpectedExpression(ExpressionType type)Generate and return a String message for an unexpected expression exception.static java.lang.StringunexpectedStatement(StatementType type)Generate and return a String message for an unexpected statement exception.-
Methods inherited from class exceptions.Exception
getMessage
-
-
-
-
Method Detail
-
unexpectedExpression
public static java.lang.String unexpectedExpression(ExpressionType type)
Generate and return a String message for an unexpected expression exception.- Parameters:
type- The type of the expression- Returns:
- A String containing the exception message
-
unexpectedStatement
public static java.lang.String unexpectedStatement(StatementType type)
Generate and return a String message for an unexpected statement exception.- Parameters:
type- The type of the statement- Returns:
- A String containing the exception message
-
-