Package exceptions

Class EvaluationException

  • All Implemented Interfaces:
    java.io.Serializable

    public final class EvaluationException
    extends Exception
    See Also:
    Serialized Form
    • Constructor Detail

      • EvaluationException

        public EvaluationException​(java.lang.String message)
    • 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 operand
        rightType - 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 symbol
        assignmentType - 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 bound
        upperType - 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