Package exceptions

Class 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.String unexpectedExpression​(ExpressionType type)
      Generate and return a String message for an unexpected expression exception.
      static java.lang.String unexpectedStatement​(StatementType type)
      Generate and return a String message for an unexpected statement exception.
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • SemanticException

        public SemanticException​(java.lang.String message)
    • 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