public enum DataEngineErrorCode extends Enum<DataEngineErrorCode>
The 5 fields in the enum are:
| Enum Constant and Description |
|---|
NULL_USER_ID |
OMRS_NOT_AVAILABLE |
OMRS_NOT_INITIALIZED |
SERVICE_NOT_INITIALIZED |
| Modifier and Type | Method and Description |
|---|---|
String |
getErrorMessage() |
String |
getErrorMessageId() |
String |
getFormattedErrorMessage(String... params)
Returns the error message with the placeholders filled out with the supplied parameters.
|
int |
getHttpErrorCode() |
String |
getSystemAction() |
String |
getUserAction() |
static DataEngineErrorCode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DataEngineErrorCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DataEngineErrorCode OMRS_NOT_INITIALIZED
public static final DataEngineErrorCode OMRS_NOT_AVAILABLE
public static final DataEngineErrorCode SERVICE_NOT_INITIALIZED
public static final DataEngineErrorCode NULL_USER_ID
public static DataEngineErrorCode[] values()
for (DataEngineErrorCode c : DataEngineErrorCode.values()) System.out.println(c);
public static DataEngineErrorCode 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 String getFormattedErrorMessage(String... params)
params - - strings that plug into the placeholders in the errorMessagepublic int getHttpErrorCode()
public String getErrorMessageId()
public String getErrorMessage()
public String getSystemAction()
public String getUserAction()
Copyright © 2018–2019 ODPi. All rights reserved.