Enum ErrorCode
- java.lang.Object
-
- java.lang.Enum<ErrorCode>
-
- no.digipost.api.useragreements.client.ErrorCode
-
- All Implemented Interfaces:
Serializable,Comparable<ErrorCode>
public enum ErrorCode extends Enum<ErrorCode>
-
-
Enum Constant Summary
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ErrorCodeparse(String error)static ErrorCodevalueOf(String name)Returns the enum constant of this type with the specified name.static ErrorCode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DOCUMENT_NOT_FOUND
public static final ErrorCode DOCUMENT_NOT_FOUND
-
AGREEMENT_TYPE_NOT_AVAILABLE
public static final ErrorCode AGREEMENT_TYPE_NOT_AVAILABLE
-
UNKNOWN_USER_ID
public static final ErrorCode UNKNOWN_USER_ID
-
NOT_AUTHORIZED
public static final ErrorCode NOT_AUTHORIZED
-
AGREEMENT_NOT_FOUND
public static final ErrorCode AGREEMENT_NOT_FOUND
-
INVOICE_ALREADY_PAID
public static final ErrorCode INVOICE_ALREADY_PAID
-
INVALID_INVOICE_STATUS
public static final ErrorCode INVALID_INVOICE_STATUS
-
INVALID_REQUEST_PARAMETER
public static final ErrorCode INVALID_REQUEST_PARAMETER
-
INVALID_FIELD
public static final ErrorCode INVALID_FIELD
-
BROKER_NOT_AUTHORIZED
public static final ErrorCode BROKER_NOT_AUTHORIZED
-
INVALID_BROKER_ID
public static final ErrorCode INVALID_BROKER_ID
-
INVALID_SENDER_ID
public static final ErrorCode INVALID_SENDER_ID
-
CLIENT_TECHNICAL_ERROR
public static final ErrorCode CLIENT_TECHNICAL_ERROR
-
INVALID_SIGNATURE
public static final ErrorCode INVALID_SIGNATURE
-
SIGNATURE_ERROR
public static final ErrorCode SIGNATURE_ERROR
-
IO_EXCEPTION
public static final ErrorCode IO_EXCEPTION
-
NO_ENTITY
public static final ErrorCode NO_ENTITY
-
MULTIPLE_ENTITIES
public static final ErrorCode MULTIPLE_ENTITIES
-
MISSING_NEXT_ALLOWED_REQUEST_TIME
public static final ErrorCode MISSING_NEXT_ALLOWED_REQUEST_TIME
-
GENERAL_ERROR
public static final ErrorCode GENERAL_ERROR
-
-
Method Detail
-
values
public static ErrorCode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ErrorCode c : ErrorCode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ErrorCode valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
-