no.digipost.api.client
Enum ErrorType
java.lang.Object
java.lang.Enum<ErrorType>
no.digipost.api.client.ErrorType
- All Implemented Interfaces:
- Serializable, Comparable<ErrorType>
public enum ErrorType
- extends Enum<ErrorType>
Method Summary |
static ErrorType |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static ErrorType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared. |
RECIPIENT_DOES_NOT_EXIST
public static final ErrorType RECIPIENT_DOES_NOT_EXIST
PROBLEM_WITH_REQUEST
public static final ErrorType PROBLEM_WITH_REQUEST
SERVER_ERROR
public static final ErrorType SERVER_ERROR
INVALID_TRANSACTION
public static final ErrorType INVALID_TRANSACTION
MESSAGE_DOES_NOT_EXIST
public static final ErrorType MESSAGE_DOES_NOT_EXIST
DUPLICATE_MESSAGE_ID
public static final ErrorType DUPLICATE_MESSAGE_ID
DIGIPOST_MESSAGE_ALREADY_DELIVERED
public static final ErrorType DIGIPOST_MESSAGE_ALREADY_DELIVERED
PRINT_MESSAGE_ALREADY_DELIVERED
public static final ErrorType PRINT_MESSAGE_ALREADY_DELIVERED
GENERAL_ERROR
public static final ErrorType GENERAL_ERROR
CANNOT_PREENCRYPT
public static final ErrorType CANNOT_PREENCRYPT
FAILED_PREENCRYPTION
public static final ErrorType FAILED_PREENCRYPTION
NOT_AUTHORIZED_FOR_PRINT
public static final ErrorType NOT_AUTHORIZED_FOR_PRINT
values
public static ErrorType[] 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 (ErrorType c : ErrorType.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static ErrorType 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 name
NullPointerException
- if the argument is null
Copyright © 2012 Digipost Open Source. All Rights Reserved.