public enum RexErrorCode extends Enum<RexErrorCode> implements ExceptionMessageSet
| Enum Constant and Description |
|---|
ENTITY_NOT_KNOWN |
INVALID_VALUE |
NO_GUID |
RELATIONSHIP_NOT_KNOWN |
TROUBLE_AT_MILL |
| Modifier and Type | Method and Description |
|---|---|
ExceptionMessageDefinition |
getMessageDefinition()
Retrieve a message definition object for an exception.
|
ExceptionMessageDefinition |
getMessageDefinition(String... params)
Retrieve a message definition object for an exception.
|
String |
toString()
toString() JSON-style
|
static RexErrorCode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RexErrorCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RexErrorCode NO_GUID
public static final RexErrorCode INVALID_VALUE
public static final RexErrorCode ENTITY_NOT_KNOWN
public static final RexErrorCode RELATIONSHIP_NOT_KNOWN
public static final RexErrorCode TROUBLE_AT_MILL
public static RexErrorCode[] values()
for (RexErrorCode c : RexErrorCode.values()) System.out.println(c);
public static RexErrorCode valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic ExceptionMessageDefinition getMessageDefinition()
getMessageDefinition in interface ExceptionMessageSetpublic ExceptionMessageDefinition getMessageDefinition(String... params)
getMessageDefinition in interface ExceptionMessageSetparams - array of parameters (all strings). They are inserted into the message according to the numbering in the message text.public String toString()
toString in class Enum<RexErrorCode>Copyright © 2018–2021 LF AI & Data Foundation. All rights reserved.