public enum GovernanceProgramErrorCode extends Enum<GovernanceProgramErrorCode> implements ExceptionMessageSet
| Modifier and Type | Method and Description |
|---|---|
ExceptionMessageDefinition |
getMessageDefinition()
Retrieve a message definition object for an exception.
|
ExceptionMessageDefinition |
getMessageDefinition(String... params)
Retrieve a message definition object for an exception.
|
String |
toString()
toString() JSON-style
|
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 NULL_ENUM
public static final GovernanceProgramErrorCode OMRS_NOT_INITIALIZED
public static final GovernanceProgramErrorCode OMRS_NOT_AVAILABLE
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 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 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 ExceptionMessageDefinition getMessageDefinition()
getMessageDefinition in interface ExceptionMessageSetpublic ExceptionMessageDefinition getMessageDefinition(String... params)
getMessageDefinition in interface ExceptionMessageSetparams - array of parameters (all strings). They are inserted into the message according to the numbering in the message text.public String toString()
toString in class Enum<GovernanceProgramErrorCode>Copyright © 2018–2020 ODPi. All rights reserved.