com.openexchange.mail
Enum MailException.Code

java.lang.Object
  extended by java.lang.Enum<MailException.Code>
      extended by com.openexchange.mail.MailException.Code
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<MailException.Code>
Enclosing class:
MailException

public static enum MailException.Code
extends java.lang.Enum<MailException.Code>


Enum Constant Summary
ACCOUNT_DOES_NOT_EXIST
          No mail account exists for admin user in context %1$s
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
          Mail could not be moved to trash folder.
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
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_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 fullname 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
          Mail folder cannot be created/rename.
INVALID_FOLDER_NAME_EMPTY
          Mail folder cannot be created/renamed.
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 permission 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
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.
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.
PROTOCOL_PARSE_ERROR
          Protocol cannot be parsed: %1$s
RECIPIENTS_EXCEEDED
          Sent quota exceeded, you are only allowed to sent 1 mail in %1$s seconds.
REFERENCED_MAIL_NOT_FOUND
          Referenced mail %1$s could not be found in folder %2$s.
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
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_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".
VERSIT_ERROR
          Versit error: %1$s
 
Method Summary
 com.openexchange.groupware.AbstractOXException.Category getCategory()
           
 java.lang.String getMessage()
           
 int getNumber()
           
static MailException.Code valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static MailException.Code[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

UNEXPECTED_ERROR

public static final MailException.Code UNEXPECTED_ERROR
Unexpected error: %1$s


MISSING_PARAMETER

public static final MailException.Code MISSING_PARAMETER
Missing parameter %1$s


INVALID_PERMISSION

public static final MailException.Code INVALID_PERMISSION
Invalid permission values: fp=%1$s orp=%2$s owp=%3$s odp=%4$s


JSON_ERROR

public static final MailException.Code JSON_ERROR
A JSON error occurred: %1$s


MISSING_CONNECT_PARAM

public static final MailException.Code MISSING_CONNECT_PARAM
Missing parameter in user's mail config: %1$s


CONFIG_ERROR

public static final MailException.Code CONFIG_ERROR
Configuration error: %1$s


INVALID_MULTIPART_CONTENT

public static final MailException.Code INVALID_MULTIPART_CONTENT
Invalid multipart content. Number of enclosed contents is 0


UNREADBALE_PART_CONTENT

public static final MailException.Code UNREADBALE_PART_CONTENT
A part's content could not be read from message %1$s in mail folder %2$s


IO_ERROR

public static final MailException.Code IO_ERROR
An I/O error occurred: %1$s


INVALID_MAIL_IDENTIFIER

public static final MailException.Code INVALID_MAIL_IDENTIFIER
Invalid message path: %1$s


UNKNOWN_COLOR_LABEL

public static final MailException.Code UNKNOWN_COLOR_LABEL
Unknown color label index: %1$s


INSTANTIATION_PROBLEM

public static final MailException.Code INSTANTIATION_PROBLEM
Cannot instantiate class %1$s.


INITIALIZATION_PROBLEM

public static final MailException.Code INITIALIZATION_PROBLEM
Cannot initialize mail module


NO_MAIL_ACCESS

public static final MailException.Code NO_MAIL_ACCESS
No mail module access permitted


ACCOUNT_DOES_NOT_EXIST

public static final MailException.Code ACCOUNT_DOES_NOT_EXIST
No mail account exists for admin user in context %1$s


INTERRUPT_ERROR

public static final MailException.Code INTERRUPT_ERROR
Process was interrupted. Please try again.


ENCODING_ERROR

public static final MailException.Code ENCODING_ERROR
Unsupported charset-encoding: %1$s


HEADER_PARSE_ERROR

public static final MailException.Code HEADER_PARSE_ERROR
Header %1$s could not be properly parsed


MISSING_DEFAULT_FOLDER_NAME

public static final MailException.Code MISSING_DEFAULT_FOLDER_NAME
Missing default %1$s folder in user mail settings


SPAM_HANDLER_INIT_FAILED

public static final MailException.Code SPAM_HANDLER_INIT_FAILED
Spam handler initialization failed: %1$s


INVALID_CONTENT_TYPE

public static final MailException.Code INVALID_CONTENT_TYPE
Invalid Content-Type value: %1$s


MESSAGING_ERROR

public static final MailException.Code MESSAGING_ERROR
Messaging error: %1$s. TODO: Maybe change to: Broken/Bad message


INVALID_FIELD

public static final MailException.Code INVALID_FIELD
Message field %1$s cannot be handled


INVALID_FIELD_EXT

public static final MailException.Code INVALID_FIELD_EXT
Message field %1$s cannot be handled on server %2$s with login %3$s (user=%4$s, context=%5$s)


VERSIT_ERROR

public static final MailException.Code VERSIT_ERROR
Versit error: %1$s


NO_ATTACHMENT_FOUND

public static final MailException.Code NO_ATTACHMENT_FOUND
No attachment was found with id %1$s in message


UNSUPPORTED_VERSIT_ATTACHMENT

public static final MailException.Code UNSUPPORTED_VERSIT_ATTACHMENT
Versit attachment could not be saved due to an unsupported MIME type: %1$s


INVALID_PARAMETER

public static final MailException.Code INVALID_PARAMETER
Invalid parameter name: %1$s


PART_MODIFIER_CREATION_FAILED

public static final MailException.Code PART_MODIFIER_CREATION_FAILED
Could not create a PartModifier instance from name %1$s


UPLOAD_QUOTA_EXCEEDED_FOR_FILE

public static final MailException.Code UPLOAD_QUOTA_EXCEEDED_FOR_FILE
Upload quota (%1$s) exceeded for file %2$s (size=%3$s)


UPLOAD_QUOTA_EXCEEDED

public static final MailException.Code UPLOAD_QUOTA_EXCEEDED
Upload quota (%1$s) exceeded


MISSING_PARAM

public static final MailException.Code MISSING_PARAM
Missing parameter %1$s


INVALID_INT_VALUE

public static final MailException.Code INVALID_INT_VALUE
Invalid integer value %1$s


MAIL_NOT_FOUND

public static final MailException.Code MAIL_NOT_FOUND
Mail(s) %1$s could not be found in folder %2$s


UNSUPPORTED_ACTION

public static final MailException.Code UNSUPPORTED_ACTION
Action %1$s is not supported by %2$s


SEND_FAILED_UNKNOWN

public static final MailException.Code SEND_FAILED_UNKNOWN
Message could not be sent


UNKNOWN_ACTION

public static final MailException.Code UNKNOWN_ACTION
Unknown action: %1$s


MISSING_FIELD

public static final MailException.Code MISSING_FIELD
Missing field %1$s


UNSUPPORTED_MIME_TYPE

public static final MailException.Code UNSUPPORTED_MIME_TYPE
Unsupported MIME type %1$s


DELETE_FAILED_OVER_QUOTA

public static final MailException.Code DELETE_FAILED_OVER_QUOTA
Mail could not be moved to trash folder. Quota exceeded


PART_NOT_FOUND

public static final MailException.Code PART_NOT_FOUND
The message part with sequence ID %1$s could not be found in message %2$s in folder %3$s


NO_CONTENT

public static final MailException.Code NO_CONTENT
No content available in mail part


COPY_TO_SENT_FOLDER_FAILED_QUOTA

public static final MailException.Code 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.


COPY_TO_SENT_FOLDER_FAILED

public static final MailException.Code COPY_TO_SENT_FOLDER_FAILED
Message has been successfully sent, but a copy could not be placed in your sent folder


UNKNOWN_PROTOCOL

public static final MailException.Code UNKNOWN_PROTOCOL
No provider could be found for protocol/URL "%1$s"


PROTOCOL_PARSE_ERROR

public static final MailException.Code PROTOCOL_PARSE_ERROR
Protocol cannot be parsed: %1$s


BAD_PARAM_VALUE

public static final MailException.Code BAD_PARAM_VALUE
Bad value %1$s in parameter %2$s


NO_MULTIPLE_REPLY

public static final MailException.Code NO_MULTIPLE_REPLY
No reply on multiple message possible


ILLEGAL_FLAG_ARGUMENT

public static final MailException.Code ILLEGAL_FLAG_ARGUMENT
legal system flag argument %1$s. Flag must be to the power of 2


ATTACHMENT_NOT_FOUND

public static final MailException.Code ATTACHMENT_NOT_FOUND
Attachment %1$s not found inside mail %2$s of mail folder %3$s


FOLDER_DOES_NOT_HOLD_MESSAGES

public static final MailException.Code FOLDER_DOES_NOT_HOLD_MESSAGES
Folder %1$s does not hold messages and is therefore not selectable


FOLDER_DOES_NOT_HOLD_MESSAGES_EXT

public static final MailException.Code 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)


INSUFFICIENT_FOLDER_ATTR

public static final MailException.Code INSUFFICIENT_FOLDER_ATTR
Insufficient folder attributes: Either existence status or fullname have to be present to determine if a mail folder create or update shall be performed


NO_ROOT_FOLDER_MODIFY_DELETE

public static final MailException.Code NO_ROOT_FOLDER_MODIFY_DELETE
Root folder must not be modified or deleted


UNKNOWN_TRANSPORT_PROTOCOL

public static final MailException.Code UNKNOWN_TRANSPORT_PROTOCOL
No transport provider could be found for protocol/URL "%1$s"


MISSING_FULLNAME

public static final MailException.Code MISSING_FULLNAME
Missing mail folder fullname


IMAGE_ATTACHMENT_NOT_FOUND

public static final MailException.Code IMAGE_ATTACHMENT_NOT_FOUND
Image attachment with Content-Id "%1$s" not found inside mail %2$s of mail folder %3$s


INVALID_SENDER

public static final MailException.Code INVALID_SENDER
The specified email address %1$s is not covered by allowed email address aliases


DEFAULT_FOLDER_CHECK_FAILED

public static final MailException.Code 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


UNSUPPORTED_DATASOURCE

public static final MailException.Code UNSUPPORTED_DATASOURCE
The types of specified data source are not supported


UNPARSEABLE_MESSAGE

public static final MailException.Code UNPARSEABLE_MESSAGE
Mail cannot be parsed. Invalid or incomplete mail data.


INVALID_FOLDER_NAME_EMPTY

public static final MailException.Code INVALID_FOLDER_NAME_EMPTY
Mail folder cannot be created/renamed. Empty folder name.


INVALID_FOLDER_NAME

public static final MailException.Code INVALID_FOLDER_NAME
Mail folder cannot be created/rename. Name must not contain character '%1$s'


INVALID_CONTENT_DISPOSITION

public static final MailException.Code INVALID_CONTENT_DISPOSITION
Invalid Content-Disposition value: %1$s


DUPLICATE_FOLDER

public static final MailException.Code DUPLICATE_FOLDER
A folder named %1$s already exists.


DUPLICATE_FOLDER_EXT

public static final MailException.Code DUPLICATE_FOLDER_EXT
A folder named %1$s already exists on server %2$s with login %3$s (user=%4$s, context=%5$s).


NO_CREATE_ACCESS

public static final MailException.Code NO_CREATE_ACCESS
No create access on mail folder %1$s.


NO_CREATE_ACCESS_EXT

public static final MailException.Code 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_TRANSPORT_SUPPORT

public static final MailException.Code NO_TRANSPORT_SUPPORT
Mail account %1$s with ID %2$s does not support mail transport.


FOLDER_NOT_FOUND

public static final MailException.Code FOLDER_NOT_FOUND
Mail folder could not be found: %1$s.


REFERENCED_MAIL_NOT_FOUND

public static final MailException.Code REFERENCED_MAIL_NOT_FOUND
Referenced mail %1$s could not be found in folder %2$s. Therefore reply/forward operation cannot be performed.


PATTERN_TOO_SHORT

public static final MailException.Code PATTERN_TOO_SHORT
In order to accomplish the search, %1$d or more characters are required.


FOLDER_DELETION_DENIED

public static final MailException.Code FOLDER_DELETION_DENIED
Mail folder must not be deleted: %1$s.


NO_DELETE_ACCESS

public static final MailException.Code NO_DELETE_ACCESS
No delete access on mail folder: %1$s.


FOLDER_MOVE_DENIED

public static final MailException.Code FOLDER_MOVE_DENIED
Mail folder must not be moved: %1$s.


FOLDER_UPDATE_DENIED

public static final MailException.Code FOLDER_UPDATE_DENIED
Mail folder must not be updated: %1$s.


NO_WRITE_ACCESS

public static final MailException.Code NO_WRITE_ACCESS
No write access on mail folder: %1$s.


NOT_CONNECTED

public static final MailException.Code NOT_CONNECTED
No connection available to access mailbox


MAIL_NOT_FOUN_BY_MESSAGE_ID

public static final MailException.Code MAIL_NOT_FOUN_BY_MESSAGE_ID
Mail could not be found in folder %1$s for Message-Id: %2$s


SENT_QUOTA_EXCEEDED

public static final MailException.Code SENT_QUOTA_EXCEEDED
Sent quota exceeded, you are only allowed to sent 1 mail in %1$s seconds.


RECIPIENTS_EXCEEDED

public static final MailException.Code RECIPIENTS_EXCEEDED
Sent quota exceeded, you are only allowed to sent 1 mail in %1$s seconds.


URI_PARSE_FAILED

public static final MailException.Code URI_PARSE_FAILED
Unable to parse mail server URI "%1$s".

Method Detail

values

public static final MailException.Code[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(MailException.Code c : MailException.Code.values())
        System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they're declared

valueOf

public static MailException.Code valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name

getCategory

public com.openexchange.groupware.AbstractOXException.Category getCategory()

getNumber

public int getNumber()

getMessage

public java.lang.String getMessage()