Class AbstractException

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private int id  
      static int ID_AMBIGUOUS
      Defines an identifier for ambiguities.
      static int ID_CANNOT_RESOLVE
      Defines an identifier if something cannot be resolved.
      static int ID_INTERNAL
      Defines an identifier for implementation problems.
      static int ID_SEMANTIC
      Defines an identifier for semantic problems.
      static int ID_WARNING
      Indicates a warning to be filtered out.
    • Constructor Summary

      Constructors 
      Constructor Description
      AbstractException​(java.lang.String message, int id)
      Creates a buildlang exception based on a given message.
      AbstractException​(java.lang.String message, java.lang.Throwable cause, int id)
      Creates a expression exception from a message and an optional cause.
      AbstractException​(AbstractException cause)
      Creates a known exception as cause.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getId()
      Returns the identifier.
      • 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
    • Field Detail

      • ID_INTERNAL

        public static final int ID_INTERNAL
        Defines an identifier for implementation problems.
        See Also:
        Constant Field Values
      • ID_SEMANTIC

        public static final int ID_SEMANTIC
        Defines an identifier for semantic problems.
        See Also:
        Constant Field Values
      • ID_CANNOT_RESOLVE

        public static final int ID_CANNOT_RESOLVE
        Defines an identifier if something cannot be resolved.
        See Also:
        Constant Field Values
      • ID_AMBIGUOUS

        public static final int ID_AMBIGUOUS
        Defines an identifier for ambiguities.
        See Also:
        Constant Field Values
      • ID_WARNING

        public static final int ID_WARNING
        Indicates a warning to be filtered out.
        See Also:
        Constant Field Values
      • id

        private int id
    • Constructor Detail

      • AbstractException

        public AbstractException​(java.lang.String message,
                                 int id)
        Creates a buildlang exception based on a given message.
        Parameters:
        message - the message of the exception
        id - the identifier (see constants above)
      • AbstractException

        public AbstractException​(java.lang.String message,
                                 java.lang.Throwable cause,
                                 int id)
        Creates a expression exception from a message and an optional cause.
        Parameters:
        message - the message of the exception
        cause - the originally causing exception
        id - the identifier (see constants above)
      • AbstractException

        public AbstractException​(AbstractException cause)
        Creates a known exception as cause. Note that the identification from cause is taken over as identification.
        Parameters:
        cause - the causing exception
    • Method Detail

      • getId

        public int getId()
        Returns the identifier. (for testing)
        Specified by:
        getId in interface IIdentifiable
        Returns:
        the identifier