Class ErrorCodes
- java.lang.Object
-
- net.ssehub.easy.dslCore.translation.ErrorCodes
-
- Direct Known Subclasses:
ErrorCodes
public class ErrorCodes extends java.lang.ObjectDefines error codes for messages used in unit testing.- Author:
- Holger Eichelberger
-
-
Field Summary
Fields Modifier and Type Field Description static intCANNOT_RESOLVE_ITERIn case that the identifier "ITER" cannot be resolved (collection iteration).static intDIMENSIONIn case of problems with an initializer container dimension.static intDISCOURAGEDDiscouraged use (usually a warning).static intFORMAT_ERRORErrors when a given format is not fulfilled.static intFROM_PARSERError received from parser and added to message list.static intIMPORTErrors during project import.static intINITIALIZER_CONSISTENCYStructural error in initializer, e.g.static intMISSINGA semantically missing element, such as a return expression.static intNAME_CLASHErrors when names clash.static intREDEFINITIONAn element is defined multiple times.static intRULESErrors during rules.static intSYNTAXIn case of syntax problems leading to missing parts in the AST.static intTYPE_CONSISTENCYElements of different types cannot be assigned.static intUNKNOWN_ELEMENTUnknown elements such as compound slots (but not types).static intUNKNOWN_TYPEUnknown types.
-
Constructor Summary
Constructors Modifier Constructor Description protectedErrorCodes()Prevents creating instances of this class.
-
-
-
Field Detail
-
UNKNOWN_TYPE
public static final int UNKNOWN_TYPE
Unknown types.- See Also:
- Constant Field Values
-
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
-
IMPORT
public static final int IMPORT
Errors during project import.- See Also:
- Constant Field Values
-
RULES
public static final int RULES
Errors during rules.- 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
-
-