public enum OMAGErrorCode extends Enum<OMAGErrorCode>
| 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.
|
static OMAGErrorCode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static OMAGErrorCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final OMAGErrorCode NULL_LOCAL_SERVER_NAME
public static final OMAGErrorCode BAD_LOCAL_SERVER_NAME
public static final OMAGErrorCode NULL_USER_NAME
public static final OMAGErrorCode NULL_COHORT_NAME
public static final OMAGErrorCode LOCAL_REPOSITORY_MODE_NOT_SET
public static final OMAGErrorCode NULL_SERVER_CONFIG
public static final OMAGErrorCode NULL_REPOSITORY_CONFIG
public static final OMAGErrorCode NULL_ACCESS_SERVICE_ADMIN_CLASS
public static final OMAGErrorCode BAD_ACCESS_SERVICE_ADMIN_CLASS
public static final OMAGErrorCode BAD_CONFIG_FILE
public static final OMAGErrorCode BAD_MAX_PAGE_SIZE
public static final OMAGErrorCode ENTERPRISE_TOPIC_START_FAILED
public static final OMAGErrorCode TOO_LATE_TO_SET_EVENT_BUS
public static final OMAGErrorCode NO_EVENT_BUS_SET
public static OMAGErrorCode[] values()
for (OMAGErrorCode c : OMAGErrorCode.values()) System.out.println(c);
public static OMAGErrorCode 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()
Copyright © 2017–2018 ODPi. All rights reserved.