public enum MailExceptionCode extends java.lang.Enum<MailExceptionCode> implements com.openexchange.exception.DisplayableOXExceptionCode
The detail number range in subclasses generated in mail bundles is supposed to start with 2000
and may go up to
2999
.
The detail number range in subclasses generated in transport bundles is supposed to start with 3000
and may go up to
3999
.
Enum Constant and Description |
---|
ACCOUNT_DOES_NOT_EXIST
Mail account is disabled for admin user in context %1$s
|
ATTACHMENT_EXPIRED
Mail attachment expired or absent.
|
ATTACHMENT_NOT_FOUND
Attachment %1$s not found inside mail %2$s of mail folder %3$s
|
BAD_PARAM_VALUE
Bad value %1$s in parameter %2$s
|
CONFIG_ERROR
Configuration error: %1$s
|
COPY_TO_SENT_FOLDER_FAILED
Message has been successfully sent, but a copy could not be placed in your sent folder
|
COPY_TO_SENT_FOLDER_FAILED_QUOTA
Message has been successfully sent, but a copy could not be placed in your sent folder due to exceeded quota.
|
DEFAULT_FOLDER_CHECK_FAILED
Checking default folders on server %1$s for user %2$s (%3$s) in context on %4$s failed: %5$s
|
DELETE_FAILED_OVER_QUOTA
This message could not be moved to trash folder as your mailbox is nearly full.
|
DRAFT_FAILED_UNKNOWN
Draft message could not be saved
|
DUPLICATE_FOLDER
A folder named %1$s already exists.
|
DUPLICATE_FOLDER_EXT
A folder named %1$s already exists on server %2$s with login %3$s (user=%4$s, context=%5$s).
|
ENCODING_ERROR
Unsupported charset-encoding: %1$s
|
FLAG_FAIL
Your E-Mail has been successfully sent, but the original E-Mail could not be flagged as "replied" and/or "forwarded".
|
FOLDER_DELETION_DENIED
Mail folder must not be deleted: %1$s.
|
FOLDER_DOES_NOT_HOLD_MESSAGES
Folder %1$s does not hold messages and is therefore not selectable
|
FOLDER_DOES_NOT_HOLD_MESSAGES_EXT
Folder %1$s does not hold messages and is therefore not selectable on server %2$s with login %3$s (user=%4$s, context=%5$s)
|
FOLDER_MOVE_DENIED
Mail folder must not be moved: %1$s.
|
FOLDER_NOT_FOUND
Mail folder could not be found: %1$s.
|
FOLDER_NOT_FOUND_SIMPLE
Mail folder could not be found.
|
FOLDER_UPDATE_DENIED
Mail folder must not be updated: %1$s.
|
HEADER_PARSE_ERROR
Header %1$s could not be properly parsed
|
ILLEGAL_FLAG_ARGUMENT
legal system flag argument %1$s.
|
IMAGE_ATTACHMENT_NOT_FOUND
Image attachment with Content-Id "%1$s" not found inside mail %2$s of mail folder %3$s
|
INITIALIZATION_PROBLEM
Cannot initialize mail module
|
INSTANTIATION_PROBLEM
Cannot instantiate class %1$s.
|
INSUFFICIENT_FOLDER_ATTR
Insufficient folder attributes: Either existence status or full name have to be present to determine if a mail folder create or
update shall be performed
|
INTERRUPT_ERROR
Process was interrupted.
|
INVALID_CONTENT_DISPOSITION
Invalid Content-Disposition value: %1$s
|
INVALID_CONTENT_TYPE
Invalid Content-Type value: %1$s
|
INVALID_FIELD
Message field %1$s cannot be handled
|
INVALID_FIELD_EXT
Message field %1$s cannot be handled on server %2$s with login %3$s (user=%4$s, context=%5$s)
|
INVALID_FOLDER_NAME
Invalid folder name: "%1$s"
|
INVALID_FOLDER_NAME_EMPTY
Mail folder cannot be created/renamed.
|
INVALID_FOLDER_NAME_TOO_LONG
Mail folder cannot be created/renamed.
|
INVALID_FOLDER_NAME2
Invalid folder name: "%1$s"
|
INVALID_INT_VALUE
Invalid integer value %1$s
|
INVALID_MAIL_IDENTIFIER
Invalid message path: %1$s
|
INVALID_MULTIPART_CONTENT
Invalid multipart content.
|
INVALID_PARAMETER
Invalid parameter name: %1$s
|
INVALID_PERMISSION
Invalid CATEGORY_PERMISSION_DENIED values: fp=%1$s orp=%2$s owp=%3$s odp=%4$s
|
INVALID_SENDER
The specified email address %1$s is not covered by allowed email address aliases
|
IO_ERROR
An I/O error occurred: %1$s
|
JSON_ERROR
A JSON error occurred: %1$s
|
MAIL_NOT_FOUN_BY_MESSAGE_ID
Mail could not be found in folder %1$s for Message-Id: %2$s
|
MAIL_NOT_FOUND
Mail(s) %1$s could not be found in folder %2$s
|
MAIL_NOT_FOUND_SIMPLE
Mail could not be found
|
MAX_MESSAGE_SIZE_EXCEEDED
Maximum message size is exceeded.
|
MESSAGING_ERROR
Messaging error: %1$s.
|
MISSING_CONNECT_PARAM
Missing parameter in user's mail config: %1$s
|
MISSING_DEFAULT_FOLDER_NAME
Missing default %1$s folder in user mail settings
|
MISSING_FIELD
Missing field %1$s
|
MISSING_FULLNAME
Missing mail folder fullname
|
MISSING_PARAM
Missing parameter %1$s
|
MISSING_PARAMETER
Missing parameter %1$s
|
NO_ATTACHMENT_FOUND
No attachment was found with id %1$s in message
|
NO_CONTENT
No content available in mail part
|
NO_CREATE_ACCESS
No create access on mail folder %1$s.
|
NO_CREATE_ACCESS_EXT
No create access on mail folder %1$s on server %2$s with login %3$s (user=%4$s, context=%5$s).
|
NO_DELETE_ACCESS
No delete access on mail folder: %1$s.
|
NO_MAIL_ACCESS
No mail module access permitted
|
NO_MULTIPLE_REPLY
No reply on multiple message possible
|
NO_ROOT_FOLDER_MODIFY_DELETE
Root folder must not be modified or deleted
|
NO_TRANSPORT_SUPPORT
Mail account %1$s with ID %2$s does not support mail transport.
|
NO_WRITE_ACCESS
No write access on mail folder: %1$s.
|
NON_SECURE_CREATION
Your account has been created but will not use a secure connection.
|
NON_SECURE_WARNING
Account has been checked successfully but with a non-secure connection.
|
NOT_CONNECTED
No connection available to access mailbox
|
PART_MODIFIER_CREATION_FAILED
Could not create a PartModifier instance from name %1$s
|
PART_NOT_FOUND
The message part with sequence ID %1$s could not be found in message %2$s in folder %3$s
|
PATTERN_TOO_SHORT
In order to accomplish the search, %1$d or more characters are required.
|
PROCESSING_ERROR
There was a problem processing the request.
|
PROTOCOL_PARSE_ERROR
Protocol cannot be parsed: %1$s
|
RECIPIENTS_EXCEEDED
Please limit your recipients to %1$s (including To/Cc/Bcc), and click 'Send' again.
|
REFERENCED_MAIL_NOT_FOUND
Referenced mail %1$s could not be found in folder %2$s.
|
RESEND_DENIED
Re-sending message denied because message is not located in %1$s folder.
|
SEND_FAILED_UNKNOWN
Message could not be sent
|
SENT_QUOTA_EXCEEDED
Sent quota exceeded, you are only allowed to sent 1 mail in %1$s seconds.
|
SPAM_HANDLER_INIT_FAILED
Spam handler initialization failed: %1$s
|
TOO_MANY_FORWARD_MAILS
Cannot forward more than %1$s messages at once.
|
UNEXPECTED_ERROR
Unexpected error: %1$s
|
UNKNOWN_ACTION
Unknown action: %1$s
|
UNKNOWN_COLOR_LABEL
Unknown color label index: %1$s
|
UNKNOWN_PROTOCOL
No provider could be found for protocol/URL "%1$s"
|
UNKNOWN_TRANSPORT_PROTOCOL
No transport provider could be found for protocol/URL "%1$s"
|
UNPARSEABLE_MESSAGE
Mail cannot be parsed.
|
UNREADBALE_PART_CONTENT
A part's content could not be read from message %1$s in mail folder %2$s
|
UNSUPPORTED_ACTION
Action %1$s is not supported by %2$s
|
UNSUPPORTED_DATASOURCE
The types of specified data source are not supported
|
UNSUPPORTED_MIME_TYPE
Unsupported MIME type %1$s
|
UNSUPPORTED_OPERATION
Invoked method is not supported.
|
UNSUPPORTED_VERSIT_ATTACHMENT
Versit attachment could not be saved due to an unsupported MIME type: %1$s
|
UPLOAD_QUOTA_EXCEEDED
Upload quota (%1$s) exceeded
|
UPLOAD_QUOTA_EXCEEDED_FOR_FILE
Upload quota (%1$s) exceeded for file %2$s (size=%3$s)
|
URI_PARSE_FAILED
Unable to parse mail server URI "%1$s".
|
USED_PUBLISHING_FEATURE
The attachments to this mail exceeded the size limit for attachments.
|
VERSIT_ERROR
Versit error: %1$s
|
CATEGORY_CAPACITY, CATEGORY_CONFIGURATION, CATEGORY_CONFLICT, CATEGORY_CONNECTIVITY, CATEGORY_ERROR, CATEGORY_PERMISSION_DENIED, CATEGORY_SERVICE_DOWN, CATEGORY_TRUNCATED, CATEGORY_TRY_AGAIN, CATEGORY_USER_INPUT, CATEGORY_WARNING, CODE_DEFAULT, EMPTY_MSG, MESSAGE_ARGS_EMPTY, PREFIX_GENERAL, PROPERTY_AUTH_ID, PROPERTY_CLIENT, PROPERTY_CONTEXT, PROPERTY_LOCALE, PROPERTY_LOGIN, PROPERTY_REQUEST, PROPERTY_REQUEST_BODY, PROPERTY_RESPONSE, PROPERTY_SESSION, PROPERTY_USER
Modifier and Type | Method and Description |
---|---|
com.openexchange.exception.OXException |
create()
Creates a new
OXException instance pre-filled with this code's attributes. |
com.openexchange.exception.OXException |
create(com.openexchange.exception.Category category,
java.lang.Object... args)
Creates a new
OXException instance pre-filled with this code's attributes. |
com.openexchange.exception.OXException |
create(com.openexchange.exception.Category category,
java.lang.Throwable cause,
java.lang.Object... args)
Creates a new
OXException instance pre-filled with this code's attributes. |
com.openexchange.exception.OXException |
create(java.lang.Object... args)
Creates a new
OXException instance pre-filled with this code's attributes. |
com.openexchange.exception.OXException |
create(java.lang.Throwable cause,
java.lang.Object... args)
Creates a new
OXException instance pre-filled with this code's attributes. |
boolean |
equals(com.openexchange.exception.OXException e) |
com.openexchange.exception.Category |
getCategory() |
java.lang.String |
getDisplayMessage() |
java.lang.String |
getMessage() |
int |
getNumber() |
java.lang.String |
getPrefix() |
static java.lang.String |
getSize(long size,
int precision,
boolean longName,
boolean realSize)
Converts given number of bytes to a human readable format.
|
static boolean |
hasPrefix(com.openexchange.exception.OXException e)
Checks if specified
OXException 's prefix is equal to this OXExceptionCode enumeration. |
static MailExceptionCode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static MailExceptionCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MailExceptionCode UNEXPECTED_ERROR
public static final MailExceptionCode MISSING_PARAMETER
public static final MailExceptionCode INVALID_PERMISSION
public static final MailExceptionCode JSON_ERROR
public static final MailExceptionCode MISSING_CONNECT_PARAM
public static final MailExceptionCode CONFIG_ERROR
public static final MailExceptionCode INVALID_MULTIPART_CONTENT
public static final MailExceptionCode UNREADBALE_PART_CONTENT
public static final MailExceptionCode IO_ERROR
public static final MailExceptionCode INVALID_MAIL_IDENTIFIER
public static final MailExceptionCode UNKNOWN_COLOR_LABEL
public static final MailExceptionCode INSTANTIATION_PROBLEM
public static final MailExceptionCode INITIALIZATION_PROBLEM
public static final MailExceptionCode NO_MAIL_ACCESS
public static final MailExceptionCode ACCOUNT_DOES_NOT_EXIST
public static final MailExceptionCode INTERRUPT_ERROR
public static final MailExceptionCode ENCODING_ERROR
public static final MailExceptionCode HEADER_PARSE_ERROR
public static final MailExceptionCode MISSING_DEFAULT_FOLDER_NAME
public static final MailExceptionCode SPAM_HANDLER_INIT_FAILED
public static final MailExceptionCode INVALID_CONTENT_TYPE
public static final MailExceptionCode MESSAGING_ERROR
public static final MailExceptionCode INVALID_FIELD
public static final MailExceptionCode INVALID_FIELD_EXT
public static final MailExceptionCode VERSIT_ERROR
public static final MailExceptionCode NO_ATTACHMENT_FOUND
public static final MailExceptionCode UNSUPPORTED_VERSIT_ATTACHMENT
public static final MailExceptionCode INVALID_PARAMETER
public static final MailExceptionCode PART_MODIFIER_CREATION_FAILED
public static final MailExceptionCode UPLOAD_QUOTA_EXCEEDED_FOR_FILE
public static final MailExceptionCode UPLOAD_QUOTA_EXCEEDED
public static final MailExceptionCode MISSING_PARAM
public static final MailExceptionCode INVALID_INT_VALUE
public static final MailExceptionCode MAIL_NOT_FOUND
public static final MailExceptionCode MAIL_NOT_FOUND_SIMPLE
public static final MailExceptionCode UNSUPPORTED_ACTION
public static final MailExceptionCode SEND_FAILED_UNKNOWN
public static final MailExceptionCode UNKNOWN_ACTION
public static final MailExceptionCode MISSING_FIELD
public static final MailExceptionCode UNSUPPORTED_MIME_TYPE
public static final MailExceptionCode DELETE_FAILED_OVER_QUOTA
public static final MailExceptionCode PART_NOT_FOUND
public static final MailExceptionCode NO_CONTENT
public static final MailExceptionCode COPY_TO_SENT_FOLDER_FAILED_QUOTA
public static final MailExceptionCode COPY_TO_SENT_FOLDER_FAILED
public static final MailExceptionCode UNKNOWN_PROTOCOL
public static final MailExceptionCode PROTOCOL_PARSE_ERROR
public static final MailExceptionCode BAD_PARAM_VALUE
public static final MailExceptionCode NO_MULTIPLE_REPLY
public static final MailExceptionCode ILLEGAL_FLAG_ARGUMENT
public static final MailExceptionCode ATTACHMENT_NOT_FOUND
public static final MailExceptionCode FOLDER_DOES_NOT_HOLD_MESSAGES
public static final MailExceptionCode FOLDER_DOES_NOT_HOLD_MESSAGES_EXT
public static final MailExceptionCode INSUFFICIENT_FOLDER_ATTR
public static final MailExceptionCode NO_ROOT_FOLDER_MODIFY_DELETE
public static final MailExceptionCode UNKNOWN_TRANSPORT_PROTOCOL
public static final MailExceptionCode MISSING_FULLNAME
public static final MailExceptionCode IMAGE_ATTACHMENT_NOT_FOUND
public static final MailExceptionCode INVALID_SENDER
public static final MailExceptionCode DEFAULT_FOLDER_CHECK_FAILED
public static final MailExceptionCode UNSUPPORTED_DATASOURCE
public static final MailExceptionCode UNPARSEABLE_MESSAGE
public static final MailExceptionCode INVALID_FOLDER_NAME_EMPTY
public static final MailExceptionCode INVALID_FOLDER_NAME
public static final MailExceptionCode INVALID_CONTENT_DISPOSITION
public static final MailExceptionCode DUPLICATE_FOLDER
public static final MailExceptionCode DUPLICATE_FOLDER_EXT
public static final MailExceptionCode NO_CREATE_ACCESS
public static final MailExceptionCode NO_CREATE_ACCESS_EXT
public static final MailExceptionCode NO_TRANSPORT_SUPPORT
public static final MailExceptionCode FOLDER_NOT_FOUND
public static final MailExceptionCode FOLDER_NOT_FOUND_SIMPLE
public static final MailExceptionCode REFERENCED_MAIL_NOT_FOUND
public static final MailExceptionCode PATTERN_TOO_SHORT
public static final MailExceptionCode FOLDER_DELETION_DENIED
public static final MailExceptionCode NO_DELETE_ACCESS
public static final MailExceptionCode FOLDER_MOVE_DENIED
public static final MailExceptionCode FOLDER_UPDATE_DENIED
public static final MailExceptionCode NO_WRITE_ACCESS
public static final MailExceptionCode NOT_CONNECTED
public static final MailExceptionCode MAIL_NOT_FOUN_BY_MESSAGE_ID
public static final MailExceptionCode SENT_QUOTA_EXCEEDED
public static final MailExceptionCode RECIPIENTS_EXCEEDED
public static final MailExceptionCode URI_PARSE_FAILED
public static final MailExceptionCode ATTACHMENT_EXPIRED
public static final MailExceptionCode NON_SECURE_WARNING
public static final MailExceptionCode TOO_MANY_FORWARD_MAILS
public static final MailExceptionCode NON_SECURE_CREATION
public static final MailExceptionCode FLAG_FAIL
public static final MailExceptionCode INVALID_FOLDER_NAME2
public static final MailExceptionCode INVALID_FOLDER_NAME_TOO_LONG
public static final MailExceptionCode USED_PUBLISHING_FEATURE
public static final MailExceptionCode DRAFT_FAILED_UNKNOWN
public static final MailExceptionCode PROCESSING_ERROR
public static final MailExceptionCode UNSUPPORTED_OPERATION
public static final MailExceptionCode MAX_MESSAGE_SIZE_EXCEEDED
public static final MailExceptionCode RESEND_DENIED
public static MailExceptionCode[] values()
for (MailExceptionCode c : MailExceptionCode.values()) System.out.println(c);
public static MailExceptionCode valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static boolean hasPrefix(com.openexchange.exception.OXException e)
OXException
's prefix is equal to this OXExceptionCode
enumeration.e
- The OXException
to checktrue
if prefix is equal; otherwise false
public java.lang.String getPrefix()
getPrefix
in interface com.openexchange.exception.OXExceptionCode
public com.openexchange.exception.Category getCategory()
getCategory
in interface com.openexchange.exception.OXExceptionCode
public int getNumber()
getNumber
in interface com.openexchange.exception.OXExceptionCode
public java.lang.String getMessage()
getMessage
in interface com.openexchange.exception.OXExceptionCode
public java.lang.String getDisplayMessage()
getDisplayMessage
in interface com.openexchange.exception.DisplayableOXExceptionCode
public boolean equals(com.openexchange.exception.OXException e)
equals
in interface com.openexchange.exception.OXExceptionCode
public com.openexchange.exception.OXException create()
OXException
instance pre-filled with this code's attributes.OXException
instancepublic com.openexchange.exception.OXException create(java.lang.Object... args)
OXException
instance pre-filled with this code's attributes.args
- The message arguments in case of printf-style messageOXException
instancepublic com.openexchange.exception.OXException create(com.openexchange.exception.Category category, java.lang.Object... args)
OXException
instance pre-filled with this code's attributes.category
- The optional categoryargs
- The message arguments in case of printf-style messageOXException
instancepublic com.openexchange.exception.OXException create(java.lang.Throwable cause, java.lang.Object... args)
OXException
instance pre-filled with this code's attributes.cause
- The optional initial causeargs
- The message arguments in case of printf-style messageOXException
instancepublic com.openexchange.exception.OXException create(com.openexchange.exception.Category category, java.lang.Throwable cause, java.lang.Object... args)
OXException
instance pre-filled with this code's attributes.category
- The optional categorycause
- The optional initial causeargs
- The message arguments in case of printf-style messageOXException
instancepublic static java.lang.String getSize(long size, int precision, boolean longName, boolean realSize)
size
- The number of bytesprecision
- The number of digits allowed after dotlongName
- true
to use unit's long name (e.g. Megabytes
) or short name (e.g. MB
)realSize
- true
to bytes' real size of 1024
used for detecting proper unit; otherwise
false
to narrow unit with 1000
.