Enum Constant Summary
Enum Constants
Method Summary
All Methods Static Methods Instance Methods Concrete Methods
static boolean
Returns the enum constant of this type with the specified name.
Returns an array containing the constants of this enum type, in
the order they are declared.
Methods inherited from class java.lang.Enum
clone , compareTo , describeConstable , equals , finalize , getDeclaringClass , hashCode , name , ordinal , toString , valueOf
Enum Constant Details
API_UNAVAILABLE
public static final ErrorCode API_UNAVAILABLE
SERVER_SIGNATURE_ERROR
public static final ErrorCode SERVER_SIGNATURE_ERROR
NOT_APPROVED_FOR_REST_API_USAGE
public static final ErrorCode NOT_APPROVED_FOR_REST_API_USAGE
NOT_APPROVED_FOR_PRINT
public static final ErrorCode NOT_APPROVED_FOR_PRINT
NOT_APPROVED_FOR_IDPORTEN
public static final ErrorCode NOT_APPROVED_FOR_IDPORTEN
NOT_APPROVED_FOR_DIRECT_PRINT
public static final ErrorCode NOT_APPROVED_FOR_DIRECT_PRINT
NOT_APPROVED_FOR_PREENCRYPT
public static final ErrorCode NOT_APPROVED_FOR_PREENCRYPT
NOT_APPROVED_FOR_TECHNICAL_ATTACHMENTS
public static final ErrorCode NOT_APPROVED_FOR_TECHNICAL_ATTACHMENTS
MISSING_CERTIFICATE
public static final ErrorCode MISSING_CERTIFICATE
REVOKED_CERTIFICATE
public static final ErrorCode REVOKED_CERTIFICATE
BROKER_NOT_AUTHORIZED
public static final ErrorCode BROKER_NOT_AUTHORIZED
NOTIFICATION_ADDRESSES_NOT_ALLOWED
public static final ErrorCode NOTIFICATION_ADDRESSES_NOT_ALLOWED
ORGANISATION_LETTERS_PER_MONTH_EXCEEDED
public static final ErrorCode ORGANISATION_LETTERS_PER_MONTH_EXCEEDED
DELIVERY_DATE_HISTORICAL
public static final ErrorCode DELIVERY_DATE_HISTORICAL
CANNOT_PREENCRYPT
public static final ErrorCode CANNOT_PREENCRYPT
FAILED_PREENCRYPTION
public static final ErrorCode FAILED_PREENCRYPTION
FAILED_TO_PARSE_ENCRYPTION_KEY
public static final ErrorCode FAILED_TO_PARSE_ENCRYPTION_KEY
PROBLEM_WITH_REQUEST
public static final ErrorCode PROBLEM_WITH_REQUEST
INVALID_TRANSACTION
public static final ErrorCode INVALID_TRANSACTION
DIGIPOST_MESSAGE_ALREADY_DELIVERED
public static final ErrorCode DIGIPOST_MESSAGE_ALREADY_DELIVERED
PRINT_MESSAGE_ALREADY_DELIVERED
public static final ErrorCode PRINT_MESSAGE_ALREADY_DELIVERED
CONNECTION_ERROR
public static final ErrorCode CONNECTION_ERROR
INVALID_DATE_RANGE
public static final ErrorCode INVALID_DATE_RANGE
INVALID_QUERY_PARAMETER
public static final ErrorCode INVALID_QUERY_PARAMETER
SCHEMA_VALIDATION_ERROR
public static final ErrorCode SCHEMA_VALIDATION_ERROR
INVALID_SIGNATURE
public static final ErrorCode INVALID_SIGNATURE
MISSING_SIGNATURE
public static final ErrorCode MISSING_SIGNATURE
CONTENT_NOT_ENCRYPTED_WITH_CORRECT_KEY
public static final ErrorCode CONTENT_NOT_ENCRYPTED_WITH_CORRECT_KEY
ENCRYPTION_KEY_NOT_FOUND
public static final ErrorCode ENCRYPTION_KEY_NOT_FOUND
CONTENT_NOT_ENCRYPTED
public static final ErrorCode CONTENT_NOT_ENCRYPTED
MESSAGE_ALREADY_SENT
public static final ErrorCode MESSAGE_ALREADY_SENT
CONTENT_ALREADY_UPLOADED
public static final ErrorCode CONTENT_ALREADY_UPLOADED
MESSAGE_NOT_FOUND
public static final ErrorCode MESSAGE_NOT_FOUND
DOCUMENT_NOT_FOUND
public static final ErrorCode DOCUMENT_NOT_FOUND
UNKNOWN_USER_ID
public static final ErrorCode UNKNOWN_USER_ID
MISSING_CONTENT_HASH
public static final ErrorCode MISSING_CONTENT_HASH
MISSING_BODYPART_CONTENT_DISPOSITION
public static final ErrorCode MISSING_BODYPART_CONTENT_DISPOSITION
MISSING_BODYPART_FILENAME
public static final ErrorCode MISSING_BODYPART_FILENAME
DOCUMENTS_AND_FILES_MISMATCH
public static final ErrorCode DOCUMENTS_AND_FILES_MISMATCH
REQUEST_TOO_LARGE
public static final ErrorCode REQUEST_TOO_LARGE
CONTENT_OF_PRINT_MESSAGE_MUST_BE_PDF
public static final ErrorCode CONTENT_OF_PRINT_MESSAGE_MUST_BE_PDF
DUPLICATE_MESSAGE
public static final ErrorCode DUPLICATE_MESSAGE
DUPLICATE_DOCUMENT_ID
public static final ErrorCode DUPLICATE_DOCUMENT_ID
ILLEGAL_HTML_CONTENT
public static final ErrorCode ILLEGAL_HTML_CONTENT
ILLEGAL_CONTENT_TYPE
public static final ErrorCode ILLEGAL_CONTENT_TYPE
VALIDATION_FAILED
public static final ErrorCode VALIDATION_FAILED
UNKNOWN_RECIPIENT
public static final ErrorCode UNKNOWN_RECIPIENT
MISSING_RECIPIENT
public static final ErrorCode MISSING_RECIPIENT
MISSING_CONTENT
public static final ErrorCode MISSING_CONTENT
MISSING_SUBJECT
public static final ErrorCode MISSING_SUBJECT
INVALID_EMAIL_ADDRESS
public static final ErrorCode INVALID_EMAIL_ADDRESS
INVALID_EMAIL_NOTIFICATION_TIME
public static final ErrorCode INVALID_EMAIL_NOTIFICATION_TIME
INVALID_SMS_NOTIFICATION_TIME
public static final ErrorCode INVALID_SMS_NOTIFICATION_TIME
INVALID_PHONE_NUMBER
public static final ErrorCode INVALID_PHONE_NUMBER
INVALID_RECIPIENT_PRINT_ADDRESS
public static final ErrorCode INVALID_RECIPIENT_PRINT_ADDRESS
INVALID_RETURN_ADDRESS
public static final ErrorCode INVALID_RETURN_ADDRESS
INVALID_PDF_CONTENT
public static final ErrorCode INVALID_PDF_CONTENT
INVALID_HTML_CONTENT
public static final ErrorCode INVALID_HTML_CONTENT
HTML_CONTENT_SANITIZED
public static final ErrorCode HTML_CONTENT_SANITIZED
INVALID_MONETARY_AMOUNT
public static final ErrorCode INVALID_MONETARY_AMOUNT
AUTHENTICATION_LEVEL_TOO_LOW
public static final ErrorCode AUTHENTICATION_LEVEL_TOO_LOW
PEPPOL_FILE_MUST_BE_XML
public static final ErrorCode PEPPOL_FILE_MUST_BE_XML
UNKNOWN_PEPPOL_RECIPIENT
public static final ErrorCode UNKNOWN_PEPPOL_RECIPIENT
Method Details
values
Returns an array containing the constants of this enum type, in
the order they are declared.
Returns:
an array containing the constants of this enum type, in the order they are declared
valueOf
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
resolve
Returns:
ErrorCode
with the same name as the given errorCode
, or falls
back to GENERAL_ERROR
if no such ErrorCode
is found.
isKnown
public static boolean isKnown (String errorCode)
resolve
Returns:
An ErrorCode that fits with the root cause of the given Throwable
. If
the root cause is unknown, GENERAL_ERROR
is
returned.