public enum ErrorCode extends Enum<ErrorCode>
Modifier and Type | Method and Description |
---|---|
ErrorType |
getOverriddenErrorType() |
static boolean |
isKnown(String errorCode) |
static ErrorCode |
resolve(String errorCode) |
static ErrorCode |
resolve(Throwable t) |
static ErrorCode |
valueOf(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.
|
public static final ErrorCode CLIENT_ERROR
public static final ErrorCode GENERAL_ERROR
public static final ErrorCode API_UNAVAILABLE
public static final ErrorCode SERVER_ERROR
public static final ErrorCode SERVER_SIGNATURE_ERROR
public static final ErrorCode NOT_APPROVED_FOR_REST_API_USAGE
public static final ErrorCode NOT_APPROVED_FOR_PRINT
public static final ErrorCode NOT_APPROVED_FOR_IDPORTEN
public static final ErrorCode NOT_APPROVED_FOR_DIRECT_PRINT
public static final ErrorCode NOT_APPROVED_FOR_PREENCRYPT
public static final ErrorCode NOT_APPROVED_FOR_TECHNICAL_ATTACHMENTS
public static final ErrorCode MISSING_CERTIFICATE
public static final ErrorCode REVOKED_CERTIFICATE
public static final ErrorCode BROKER_NOT_AUTHORIZED
public static final ErrorCode NOTIFICATION_ADDRESSES_NOT_ALLOWED
public static final ErrorCode ORGANISATION_LETTERS_PER_MONTH_EXCEEDED
public static final ErrorCode DELIVERY_DATE_HISTORICAL
public static final ErrorCode CANNOT_PREENCRYPT
public static final ErrorCode FAILED_PREENCRYPTION
public static final ErrorCode FAILED_TO_PARSE_ENCRYPTION_KEY
public static final ErrorCode PROBLEM_WITH_REQUEST
public static final ErrorCode INVALID_TRANSACTION
public static final ErrorCode DIGIPOST_MESSAGE_ALREADY_DELIVERED
public static final ErrorCode PRINT_MESSAGE_ALREADY_DELIVERED
public static final ErrorCode CONNECTION_ERROR
public static final ErrorCode INVALID_DATE
public static final ErrorCode INVALID_DATE_RANGE
public static final ErrorCode INVALID_QUERY_PARAMETER
public static final ErrorCode SCHEMA_VALIDATION_ERROR
public static final ErrorCode ILLEGAL_ACCESS
public static final ErrorCode INVALID_SIGNATURE
public static final ErrorCode MISSING_SIGNATURE
public static final ErrorCode CONTENT_NOT_ENCRYPTED_WITH_CORRECT_KEY
public static final ErrorCode ENCRYPTION_KEY_NOT_FOUND
public static final ErrorCode CONTENT_NOT_ENCRYPTED
public static final ErrorCode MESSAGE_ALREADY_SENT
public static final ErrorCode CONTENT_ALREADY_UPLOADED
public static final ErrorCode MESSAGE_NOT_FOUND
public static final ErrorCode DOCUMENT_NOT_FOUND
public static final ErrorCode INVALID_USER_ID_HEADER
public static final ErrorCode UNKNOWN_USER_ID
public static final ErrorCode MISSING_DATE_HEADER
public static final ErrorCode INVALID_DATE_HEADER
public static final ErrorCode DATE_HEADER_OUTSIDE_ACCEPTED_INTERVAL
public static final ErrorCode MISSING_SHA256
public static final ErrorCode INVALID_SHA256
public static final ErrorCode MISSING_CONTENT_HASH
public static final ErrorCode INVALID_MD5
public static final ErrorCode MISSING_BODYPART_CONTENT_DISPOSITION
public static final ErrorCode MISSING_BODYPART_FILENAME
public static final ErrorCode DOCUMENTS_AND_FILES_MISMATCH
public static final ErrorCode REQUEST_TOO_LARGE
public static final ErrorCode CONTENT_OF_PRINT_MESSAGE_MUST_BE_PDF
public static final ErrorCode DUPLICATE_MESSAGE
public static final ErrorCode DUPLICATE_DOCUMENT_ID
public static final ErrorCode FILE_TOO_LARGE
public static final ErrorCode ILLEGAL_HTML_CONTENT
public static final ErrorCode BAD_CONTENT
public static final ErrorCode ILLEGAL_CONTENT_TYPE
public static final ErrorCode VALIDATION_FAILED
public static final ErrorCode UNKNOWN_SENDER
public static final ErrorCode UNKNOWN_RECIPIENT
public static final ErrorCode MISSING_RECIPIENT
public static final ErrorCode MISSING_CONTENT
public static final ErrorCode MISSING_SUBJECT
public static final ErrorCode INVALID_EMAIL_ADDRESS
public static final ErrorCode INVALID_EMAIL_NOTIFICATION_TIME
public static final ErrorCode INVALID_SMS_NOTIFICATION_TIME
public static final ErrorCode INVALID_PHONE_NUMBER
public static final ErrorCode INVALID_RECIPIENT_PRINT_ADDRESS
public static final ErrorCode INVALID_RETURN_ADDRESS
public static final ErrorCode INVALID_PDF_CONTENT
public static final ErrorCode INVALID_MONETARY_AMOUNT
public static final ErrorCode AUTHENTICATION_LEVEL_TOO_LOW
public final ErrorType errorType
public static ErrorCode[] values()
for (ErrorCode c : ErrorCode.values()) System.out.println(c);
public static ErrorCode 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 ErrorType getOverriddenErrorType()
public static ErrorCode resolve(String errorCode)
ErrorCode
with the same name as the given errorCode
, or falls
back to GENERAL_ERROR
if no such ErrorCode
is found.public static boolean isKnown(String errorCode)
public static ErrorCode resolve(Throwable t)
Throwable
. If
the root cause is unknown, GENERAL_ERROR
is
returned.Copyright © 2019 Digipost. All rights reserved.