public enum DataManagerErrorCode extends Enum<DataManagerErrorCode> implements ExceptionMessageSet
| Enum Constant and Description |
|---|
ADD_CLASSIFICATION_EXCEPTION |
ADD_ENTITY_EXCEPTION |
ADD_RELATIONSHIP_EXCEPTION |
GET_ENTITY_EXCEPTION |
GET_RELATIONSHIP_EXCEPTION |
NULL_LISTENER |
OMRS_NOT_INITIALIZED |
UNABLE_TO_SEND_EVENT |
UNEXPECTED_INITIALIZATION_EXCEPTION |
| 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.
|
static DataManagerErrorCode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DataManagerErrorCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DataManagerErrorCode ADD_ENTITY_EXCEPTION
public static final DataManagerErrorCode ADD_RELATIONSHIP_EXCEPTION
public static final DataManagerErrorCode GET_ENTITY_EXCEPTION
public static final DataManagerErrorCode GET_RELATIONSHIP_EXCEPTION
public static final DataManagerErrorCode ADD_CLASSIFICATION_EXCEPTION
public static final DataManagerErrorCode OMRS_NOT_INITIALIZED
public static final DataManagerErrorCode NULL_LISTENER
public static final DataManagerErrorCode UNABLE_TO_SEND_EVENT
public static final DataManagerErrorCode UNEXPECTED_INITIALIZATION_EXCEPTION
public static DataManagerErrorCode[] values()
for (DataManagerErrorCode c : DataManagerErrorCode.values()) System.out.println(c);
public static DataManagerErrorCode 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.Copyright © 2018–2020 ODPi. All rights reserved.