public enum OMAGOCFErrorCode extends Enum<OMAGOCFErrorCode>
| Enum Constant and Description |
|---|
BAD_CLASSIFICATION_PROPERTIES |
NO_ASSET_PROPERTIES |
NULL_CLASSIFICATION_NAME |
NULL_CONNECTION_PARAMETER |
NULL_CONNECTOR_RETURNED |
OMRS_NOT_INITIALIZED |
| Modifier and Type | Method and Description |
|---|---|
String |
getErrorMessageId()
Returns the unique identifier for the error message.
|
String |
getFormattedErrorMessage(String... params)
Returns the error message with the placeholders filled out with the supplied parameters.
|
int |
getHTTPErrorCode() |
String |
getSystemAction()
Returns a description of the action taken by the system when the condition that caused this exception was
detected.
|
String |
getUnformattedErrorMessage()
Returns the error message with placeholders for specific details.
|
String |
getUserAction()
Returns instructions of how to resolve the issue reported in this exception.
|
String |
toString()
JSON-style toString
|
static OMAGOCFErrorCode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static OMAGOCFErrorCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final OMAGOCFErrorCode NULL_CONNECTION_PARAMETER
public static final OMAGOCFErrorCode NO_ASSET_PROPERTIES
public static final OMAGOCFErrorCode NULL_CLASSIFICATION_NAME
public static final OMAGOCFErrorCode BAD_CLASSIFICATION_PROPERTIES
public static final OMAGOCFErrorCode OMRS_NOT_INITIALIZED
public static final OMAGOCFErrorCode NULL_CONNECTOR_RETURNED
public static OMAGOCFErrorCode[] values()
for (OMAGOCFErrorCode c : OMAGOCFErrorCode.values()) System.out.println(c);
public static OMAGOCFErrorCode 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 int getHTTPErrorCode()
public String getErrorMessageId()
public String getUnformattedErrorMessage()
public String getFormattedErrorMessage(String... params)
params - strings that plug into the placeholders in the errorMessagepublic String getSystemAction()
public String getUserAction()
public String toString()
toString in class Enum<OMAGOCFErrorCode>Copyright © 2018–2019 ODPi. All rights reserved.