public enum GovernanceProgramErrorCode extends Enum<GovernanceProgramErrorCode>
| 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 GovernanceProgramErrorCode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static GovernanceProgramErrorCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final GovernanceProgramErrorCode SERVER_URL_NOT_SPECIFIED
public static final GovernanceProgramErrorCode SERVER_URL_MALFORMED
public static final GovernanceProgramErrorCode NULL_USER_ID
public static final GovernanceProgramErrorCode NULL_GUID
public static final GovernanceProgramErrorCode NULL_NAME
public static final GovernanceProgramErrorCode USER_NOT_AUTHORIZED
public static final GovernanceProgramErrorCode PROPERTY_SERVER_ERROR
public static final GovernanceProgramErrorCode NULL_ENUM
public static final GovernanceProgramErrorCode SERVER_NOT_AVAILABLE
public static final GovernanceProgramErrorCode OMRS_NOT_INITIALIZED
public static final GovernanceProgramErrorCode OMRS_NOT_AVAILABLE
public static final GovernanceProgramErrorCode NO_METADATA_COLLECTION
public static final GovernanceProgramErrorCode INSTANCE_NOT_FOUND_BY_GUID
public static final GovernanceProgramErrorCode PERSONAL_DETAILS_NOT_FOUND_BY_EMP_ID
public static final GovernanceProgramErrorCode PERSONAL_DETAILS_NOT_FOUND_BY_NAME
public static final GovernanceProgramErrorCode DUPLICATE_PERSONAL_DETAILS_FOR_EMP_ID
public static final GovernanceProgramErrorCode PERSONAL_DETAILS_NOT_DELETED
public static final GovernanceProgramErrorCode GOVERNANCE_OFFICER_NOT_FOUND_BY_APPOINTMENT_ID
public static final GovernanceProgramErrorCode GOVERNANCE_OFFICER_NOT_FOUND_BY_NAME
public static final GovernanceProgramErrorCode DUPLICATE_GOVERNANCE_OFFICER_FOR_APPOINTMENT_ID
public static final GovernanceProgramErrorCode GOVERNANCE_OFFICER_NOT_DELETED
public static final GovernanceProgramErrorCode INSTANCE_NOT_DELETED
public static final GovernanceProgramErrorCode MULTIPLE_INCUMBENTS_FOR_GOVERNANCE_OFFICER
public static final GovernanceProgramErrorCode FREE_ROLE_FOR_APPOINTMENT_FAILED
public static final GovernanceProgramErrorCode NO_PROFILE_FOR_GOVERNANCE_POST
public static final GovernanceProgramErrorCode PROFILE_NOT_LINKED_TO_GOVERNANCE_OFFICER
public static final GovernanceProgramErrorCode INVALID_GOVERNANCE_POST_RELATIONSHIP
public static final GovernanceProgramErrorCode NULL_RESPONSE_FROM_API
public static final GovernanceProgramErrorCode CLIENT_SIDE_REST_API_ERROR
public static final GovernanceProgramErrorCode SERVICE_NOT_INITIALIZED
public static GovernanceProgramErrorCode[] values()
for (GovernanceProgramErrorCode c : GovernanceProgramErrorCode.values()) System.out.println(c);
public static GovernanceProgramErrorCode 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<GovernanceProgramErrorCode>Copyright © 2018–2020 ODPi. All rights reserved.