Enum Class EUACode
- All Implemented Interfaces:
Serializable, Comparable<EUACode>, Constable
Represents standardized result codes used in
EUA responses.
Each EUACode corresponds to a specific application-level outcome, such as success,
known error conditions (e.g., object already exists), or structural/environmental constraints.
These codes are primarily intended to be consumed by end-user interfaces, APIs, or
external tools interfacing with Integraal.
The convention is:
- Positive codes → success
- Negative codes → known failures or invalid operations
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe name of the object to be added to the environment already exists.The target of deletion is part of a complex object (and it is forbidden).The provided string is not in correct dlgp or vd format.The environment is full, nothing can be added.The iterator has no next element (last element has been reached).No error, everything went fine.Unidentified error.The name of the object to be retrieved in the environment doesn't identify an object of the environment (it doesn't exist in the environment).A command is called with an unknown parameter.The string to be inserted in an object contains dlgp (or vd) entries that doesn't comply with the object type/nature (i.e. trying to add rules to a fact base). -
Method Summary
-
Enum Constant Details
-
SUCCESS
No error, everything went fine. -
UNKNOWN_OBJECT
The name of the object to be retrieved in the environment doesn't identify an object of the environment (it doesn't exist in the environment). -
EXISTING_OBJECT
The name of the object to be added to the environment already exists. -
FULL_ENVIRONMENT
The environment is full, nothing can be added. -
FORMAT_ERROR
The provided string is not in correct dlgp or vd format. -
UNSUITABLE_ELEMENT
The string to be inserted in an object contains dlgp (or vd) entries that doesn't comply with the object type/nature (i.e. trying to add rules to a fact base). -
FORBIDDEN_DELETION
The target of deletion is part of a complex object (and it is forbidden). -
NO_NEXT_ELEMENT
The iterator has no next element (last element has been reached). -
UNKNOWN_PARAMETER
A command is called with an unknown parameter. -
UNIDENTIFIED_ERROR
Unidentified error.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getCode
public int getCode()Returns the EUACode as an integer.- Returns:
- an integer.
-