Class SemanticException

  • All Implemented Interfaces:
    java.io.Serializable

    public class SemanticException
    extends java.lang.Exception
    This class represents an error found during semantic analysis, for example a duplicate rule name.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      SemanticException​(java.lang.String message, TreeNode node)
      Constructs a semantic exception.
    • Method Summary

      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, 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,
                                 TreeNode node)
        Constructs a semantic exception.
        Parameters:
        message - the message accurately describing the error
        node - the affected node, used to display a line number