public enum DataEngineErrorCode extends Enum<DataEngineErrorCode>
The 5 fields in the enum are:
| Enum Constant and Description |
|---|
DATA_ENGINE_EXCEPTION |
INVALID_PORT_TYPE |
NULL_TOPIC_CONNECTOR |
OMRS_NOT_INITIALIZED |
PARSE_EVENT_EXCEPTION |
PORT_NOT_FOUND |
PROCESS_EVENT_EXCEPTION |
PROCESS_NOT_FOUND |
SCHEMA_ATTRIBUTE_NOT_FOUND |
| Modifier and Type | Method and Description |
|---|---|
String |
getErrorMessage()
Returns the un-formatted error message.
|
String |
getErrorMessageId()
Returns the unique error message identifier of the error.
|
String |
getFormattedErrorMessage(String... params)
Returns the error message with the placeholders filled out with the supplied parameters.
|
int |
getHttpErrorCode()
Returns the numeric code that can be used in a REST response.
|
String |
getSystemAction()
Returns the action taken by the system when the error occurred.
|
String |
getUserAction()
Returns the proposed action for a user to take when encountering the error.
|
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 INVALID_PORT_TYPE
public static final DataEngineErrorCode PROCESS_EVENT_EXCEPTION
public static final DataEngineErrorCode PARSE_EVENT_EXCEPTION
public static final DataEngineErrorCode DATA_ENGINE_EXCEPTION
public static final DataEngineErrorCode SCHEMA_ATTRIBUTE_NOT_FOUND
public static final DataEngineErrorCode PORT_NOT_FOUND
public static final DataEngineErrorCode NULL_TOPIC_CONNECTOR
public static final DataEngineErrorCode PROCESS_NOT_FOUND
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–2020 ODPi. All rights reserved.