Class ErrorCodes

  • Direct Known Subclasses:
    ErrorCodes

    public class ErrorCodes
    extends java.lang.Object
    Defines error codes for messages used in unit testing.
    Author:
    Holger Eichelberger
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int CANNOT_RESOLVE_ITER
      In case that the identifier "ITER" cannot be resolved (collection iteration).
      static int DIMENSION
      In case of problems with an initializer container dimension.
      static int DISCOURAGED
      Discouraged use (usually a warning).
      static int FORMAT_ERROR
      Errors when a given format is not fulfilled.
      static int FROM_PARSER
      Error received from parser and added to message list.
      static int IMPORT
      Errors during project import.
      static int INITIALIZER_CONSISTENCY
      Structural error in initializer, e.g.
      static int MISSING
      A semantically missing element, such as a return expression.
      static int NAME_CLASH
      Errors when names clash.
      static int REDEFINITION
      An element is defined multiple times.
      static int RULES
      Errors during rules.
      static int SYNTAX
      In case of syntax problems leading to missing parts in the AST.
      static int TYPE_CONSISTENCY
      Elements of different types cannot be assigned.
      static int UNKNOWN_ELEMENT
      Unknown elements such as compound slots (but not types).
      static int UNKNOWN_TYPE
      Unknown types.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected ErrorCodes()
      Prevents creating instances of this class.
    • Method Summary

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • INITIALIZER_CONSISTENCY

        public static final int INITIALIZER_CONSISTENCY
        Structural error in initializer, e.g. missing names.
        See Also:
        Constant Field Values
      • TYPE_CONSISTENCY

        public static final int TYPE_CONSISTENCY
        Elements of different types cannot be assigned.
        See Also:
        Constant Field Values
      • REDEFINITION

        public static final int REDEFINITION
        An element is defined multiple times.
        See Also:
        Constant Field Values
      • NAME_CLASH

        public static final int NAME_CLASH
        Errors when names clash.
        See Also:
        Constant Field Values
      • FROM_PARSER

        public static final int FROM_PARSER
        Error received from parser and added to message list.
        See Also:
        Constant Field Values
      • FORMAT_ERROR

        public static final int FORMAT_ERROR
        Errors when a given format is not fulfilled.
        See Also:
        Constant Field Values
      • UNKNOWN_ELEMENT

        public static final int UNKNOWN_ELEMENT
        Unknown elements such as compound slots (but not types).
        See Also:
        Constant Field Values
      • CANNOT_RESOLVE_ITER

        public static final int CANNOT_RESOLVE_ITER
        In case that the identifier "ITER" cannot be resolved (collection iteration).
        See Also:
        Constant Field Values
      • DIMENSION

        public static final int DIMENSION
        In case of problems with an initializer container dimension.
        See Also:
        Constant Field Values
      • SYNTAX

        public static final int SYNTAX
        In case of syntax problems leading to missing parts in the AST.
        See Also:
        Constant Field Values
      • DISCOURAGED

        public static final int DISCOURAGED
        Discouraged use (usually a warning).
        See Also:
        Constant Field Values
      • MISSING

        public static final int MISSING
        A semantically missing element, such as a return expression.
        See Also:
        Constant Field Values
    • Constructor Detail

      • ErrorCodes

        protected ErrorCodes()
        Prevents creating instances of this class.