Package exceptions
Class EvaluationException
- java.lang.Object
-
- java.lang.Throwable
-
- exceptions.Exception
-
- exceptions.EvaluationException
-
- All Implemented Interfaces:
java.io.Serializable
public final class EvaluationException extends Exception
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description EvaluationException(java.lang.String message)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.StringinvalidConditionalType(ObjectType type)Generate and return a String message for an invalid conditional types exception.static java.lang.StringinvalidLoopTypes(ObjectType lowerType, ObjectType upperType)Generate and return a String message for an invalid loop types exception.static java.lang.StringmissingSymbol(java.lang.String name)Generate and return a String message for a missing symbol exception.static java.lang.StringunexpectedAnnotatedExpression(AnnotatedExpressionType type)Generate and return a String message for an unexpected annotated expression exception.static java.lang.StringunexpectedAnnotatedStatement(AnnotatedStatementType type)Generate and return a String message for an unexpected annotated statement exception.static java.lang.StringunexpectedAssignmentObjectTypes(ObjectType symbolType, ObjectType assignmentType)Generate and return a String message for an unexpected assignment object type exception.static java.lang.StringunexpectedAssignmentOperator(OperatorType type)Generate and return a String message for an unexpected assignment operator exception.static java.lang.StringunexpectedBinaryObjectTypes(ObjectType leftType, ObjectType rightType)Generate and return a String message for an unexpected binary object type exception.static java.lang.StringunexpectedBinaryOperator(OperatorType type)Generate and return a String message for an unexpected binary operator exception.static java.lang.StringunexpectedUnaryObjectType(ObjectType type)Generate and return a String message for an unexpected unary object type exception.static java.lang.StringunexpectedUnaryOperator(OperatorType type)Generate and return a String message for an unexpected unary operator exception.-
Methods inherited from class exceptions.Exception
getMessage
-
-
-
-
Method Detail
-
unexpectedAnnotatedExpression
public static java.lang.String unexpectedAnnotatedExpression(AnnotatedExpressionType type)
Generate and return a String message for an unexpected annotated expression exception.- Parameters:
type- The type of the expression- Returns:
- A String containing the exception message
-
unexpectedAnnotatedStatement
public static java.lang.String unexpectedAnnotatedStatement(AnnotatedStatementType type)
Generate and return a String message for an unexpected annotated statement exception.- Parameters:
type- The type of the statement- Returns:
- A String containing the exception message
-
unexpectedUnaryObjectType
public static java.lang.String unexpectedUnaryObjectType(ObjectType type)
Generate and return a String message for an unexpected unary object type exception.- Parameters:
type- The type of the unary operand- Returns:
- A String containing the exception message
-
unexpectedBinaryObjectTypes
public static java.lang.String unexpectedBinaryObjectTypes(ObjectType leftType, ObjectType rightType)
Generate and return a String message for an unexpected binary object type exception.- Parameters:
leftType- The type of the left operandrightType- The type of the right operand- Returns:
- A String containing the exception message
-
unexpectedAssignmentObjectTypes
public static java.lang.String unexpectedAssignmentObjectTypes(ObjectType symbolType, ObjectType assignmentType)
Generate and return a String message for an unexpected assignment object type exception.- Parameters:
symbolType- The type of the symbolassignmentType- The type of the assignment- Returns:
- A String containing the exception message
-
unexpectedUnaryOperator
public static java.lang.String unexpectedUnaryOperator(OperatorType type)
Generate and return a String message for an unexpected unary operator exception.- Parameters:
type- The type of the unary operator- Returns:
- A String containing the exception message
-
unexpectedBinaryOperator
public static java.lang.String unexpectedBinaryOperator(OperatorType type)
Generate and return a String message for an unexpected binary operator exception.- Parameters:
type- The type of the binary operator- Returns:
- A String containing the exception message
-
unexpectedAssignmentOperator
public static java.lang.String unexpectedAssignmentOperator(OperatorType type)
Generate and return a String message for an unexpected assignment operator exception.- Parameters:
type- The type of the assignment operator- Returns:
- A String containing the exception message
-
missingSymbol
public static java.lang.String missingSymbol(java.lang.String name)
Generate and return a String message for a missing symbol exception.- Parameters:
name- The name of the missing symbol- Returns:
- A String containing the exception message
-
invalidLoopTypes
public static java.lang.String invalidLoopTypes(ObjectType lowerType, ObjectType upperType)
Generate and return a String message for an invalid loop types exception.- Parameters:
lowerType- The type of the lower boundupperType- The type of the upper bound- Returns:
- A String containing the exception message
-
invalidConditionalType
public static java.lang.String invalidConditionalType(ObjectType type)
Generate and return a String message for an invalid conditional types exception.- Parameters:
type- The type of the condition- Returns:
- A String containing the exception message
-
-