com.openexchange.mail.mime
Enum MIMEMailException.Code

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

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


Enum Constant Summary
BAD_COMMAND
          Mail server indicates a bad command.
BAD_COMMAND_EXT
          Bad command indicated by mail server %1$s with login %2$s (user=%3$s, context=%4$s).
BIND_ERROR
          Could not bind mail connection to local port %1$s Signals that an error occurred while attempting to bind a socket to a local address and port.
BROKEN_CONNECTION
          Connection is broken due to a socket exception on remote mail server: %1$s
COMMAND_FAILED
          A command to mail server failed.
COMMAND_FAILED_EXT
          A command failed on mail server %1$s with login %2$s (user=%3$s, context=%4$s).
CONNECT_ERROR
          Connection was refused or timed out while attempting to connect to remote mail server %1$s for user %2$s.
CONNECTION_RESET
          Connection was reset
FOLDER_CLOSED
          Folder "%1$s" has been closed due to some reason.
FOLDER_CLOSED_EXT
          Folder "%1$s" has been closed on mail server %2$s with login %3$s (user=%4$s, context=%5$s) due to some reason.
FOLDER_NOT_FOUND
          Mail folder "%1$s" could not be found.
FOLDER_NOT_FOUND_EXT
          Mail folder "%1$s" could not be found on mail server %2$s with login %3$s (user=%4$s, context=%5$s).
ILLEGAL_WRITE
          Illegal write attempt: %1$s The exception thrown when a write is attempted on a read-only attribute of any Messaging object.
INVALID_CREDENTIALS
          Wrong or missing login data to access mail server %1$s.
INVALID_CREDENTIALS_EXT
          Wrong or missing login data to access mail server %1$s with login %2$s (user=%3$s, context=%4$s).
INVALID_EMAIL_ADDRESS
          Invalid email address %1$s
LOGIN_FAILED
          There was an issue in authenticating your E-Mail password.
MESSAGE_NOT_DISPLAYED
          Message cannot be displayed.
MESSAGE_REMOVED
          Invalid method on a expunged message: %1$s The exception thrown when an invalid method is invoked on an expunged Message.
MESSAGE_TOO_LARGE
          Message could not be sent because it is too large
MESSAGING_ERROR
          Messaging error: %1$s
METHOD_NOT_SUPPORTED
          Method not supported: %1$s The exception thrown when a method is not supported by the implementation
NO_ROUTE_TO_HOST
          No route to host: mail server %1$s cannot be reached Signals that an error occurred while attempting to connect to remote mail server.
NO_SUCH_PROVIDER
          Session attempts to instantiate a provider that doesn't exist: %1$s
PARSE_ERROR
          Wrong message header: %1$s The exception thrown due to an error in parsing RFC822 or MIME headers
PORT_UNREACHABLE
          Port %1$s was unreachable on remote mail server
PROCESSING_ERROR
          Error processing mail server response.
PROCESSING_ERROR_EXT
          Error processing %1$s mail server response for login %2$s (user=%3$s, context=%4$s).
PROTOCOL_ERROR
          An error in mail server protocol.
PROTOCOL_ERROR_EXT
          An error in protocol to mail server %1$s with login %2$s (user=%3$s, context=%4$s).
QUOTA_EXCEEDED
          The quota on mail server is exceeded
READ_ONLY_FOLDER
          An attempt was made to open a read-only folder with read-write "%1$s"
READ_ONLY_FOLDER_EXT
          An attempt was made to open a read-only folder with read-write "%1$s" on mail server %2$s with login %3$s (user=%4$s, context=%5$s)
SEARCH_ERROR
          Invalid search expression: %1$s
SEND_FAILED
          Message could not be sent to following recipients: %1$s The exception includes those addresses to which the message could not be sent as well as the valid addresses to which the message was sent and valid addresses to which the message was not sent.
SEND_FAILED_MSG
          Message could not be sent: %1$s
SOCKET_ERROR
          A socket error occurred: %1$s
STORE_CLOSED
          Store already closed: %1$s
STORE_CLOSED_EXT
          Connection closed to mail server %1$s with login %2$s (user=%3$s, context=%4$s): %5$s
TRANSPORT_INVALID_CREDENTIALS
          Wrong or missing login data to access mail transport server %1$s.
TRANSPORT_INVALID_CREDENTIALS_EXT
          Wrong or missing login data to access mail transport server %1$s with login %2$s (user=%3$s, context=%4$s).
UNKNOWN_HOST
          The IP address of host "%1$s" could not be determined
 
Method Summary
 com.openexchange.groupware.AbstractOXException.Category getCategory()
           
 java.lang.String getMessage()
           
 int getNumber()
           
static MIMEMailException.Code valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static MIMEMailException.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

LOGIN_FAILED

public static final MIMEMailException.Code LOGIN_FAILED
There was an issue in authenticating your E-Mail password. This may be because of a recent password change. To continue please logout now and then log back in with your most current password. (server=%1$s | user=%2$s)


INVALID_CREDENTIALS

public static final MIMEMailException.Code INVALID_CREDENTIALS
Wrong or missing login data to access mail server %1$s. Error message from mail server: %2$s


INVALID_CREDENTIALS_EXT

public static final MIMEMailException.Code INVALID_CREDENTIALS_EXT
Wrong or missing login data to access mail server %1$s with login %2$s (user=%3$s, context=%4$s). Error message from mail server: %5$s


FOLDER_NOT_FOUND

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


FOLDER_NOT_FOUND_EXT

public static final MIMEMailException.Code FOLDER_NOT_FOUND_EXT
Mail folder "%1$s" could not be found on mail server %2$s with login %3$s (user=%4$s, context=%5$s).


FOLDER_CLOSED

public static final MIMEMailException.Code FOLDER_CLOSED
Folder "%1$s" has been closed due to some reason.
Probably your request took too long.

This exception is thrown when a method is invoked on a Messaging object and the Folder that owns that object has died due to some reason. Following the exception, the Folder is reset to the "closed" state.


FOLDER_CLOSED_EXT

public static final MIMEMailException.Code FOLDER_CLOSED_EXT
Folder "%1$s" has been closed on mail server %2$s with login %3$s (user=%4$s, context=%5$s) due to some reason.
Probably your request took too long.


ILLEGAL_WRITE

public static final MIMEMailException.Code ILLEGAL_WRITE
Illegal write attempt: %1$s

The exception thrown when a write is attempted on a read-only attribute of any Messaging object.


MESSAGE_REMOVED

public static final MIMEMailException.Code MESSAGE_REMOVED
Invalid method on a expunged message: %1$s

The exception thrown when an invalid method is invoked on an expunged Message. The only valid methods on an expunged Message are isExpunged() and getMessageNumber().


METHOD_NOT_SUPPORTED

public static final MIMEMailException.Code METHOD_NOT_SUPPORTED
Method not supported: %1$s

The exception thrown when a method is not supported by the implementation


NO_SUCH_PROVIDER

public static final MIMEMailException.Code NO_SUCH_PROVIDER
Session attempts to instantiate a provider that doesn't exist: %1$s


INVALID_EMAIL_ADDRESS

public static final MIMEMailException.Code INVALID_EMAIL_ADDRESS
Invalid email address %1$s


PARSE_ERROR

public static final MIMEMailException.Code PARSE_ERROR
Wrong message header: %1$s

The exception thrown due to an error in parsing RFC822 or MIME headers


READ_ONLY_FOLDER

public static final MIMEMailException.Code READ_ONLY_FOLDER
An attempt was made to open a read-only folder with read-write "%1$s"


READ_ONLY_FOLDER_EXT

public static final MIMEMailException.Code READ_ONLY_FOLDER_EXT
An attempt was made to open a read-only folder with read-write "%1$s" on mail server %2$s with login %3$s (user=%4$s, context=%5$s)


SEARCH_ERROR

public static final MIMEMailException.Code SEARCH_ERROR
Invalid search expression: %1$s


MESSAGE_TOO_LARGE

public static final MIMEMailException.Code MESSAGE_TOO_LARGE
Message could not be sent because it is too large


SEND_FAILED

public static final MIMEMailException.Code SEND_FAILED
Message could not be sent to following recipients: %1$s

The exception includes those addresses to which the message could not be sent as well as the valid addresses to which the message was sent and valid addresses to which the message was not sent.


STORE_CLOSED

public static final MIMEMailException.Code STORE_CLOSED
Store already closed: %1$s


STORE_CLOSED_EXT

public static final MIMEMailException.Code STORE_CLOSED_EXT
Connection closed to mail server %1$s with login %2$s (user=%3$s, context=%4$s): %5$s


BIND_ERROR

public static final MIMEMailException.Code BIND_ERROR
Could not bind mail connection to local port %1$s

Signals that an error occurred while attempting to bind a socket to a local address and port. Typically, the port is in use, or the requested local address could not be assigned.


CONNECT_ERROR

public static final MIMEMailException.Code CONNECT_ERROR
Connection was refused or timed out while attempting to connect to remote mail server %1$s for user %2$s.

An error occurred while attempting to connect to remote mail server. Typically, the connection was refused remotely (e.g., no process is listening on the remote address/port).


CONNECTION_RESET

public static final MIMEMailException.Code CONNECTION_RESET
Connection was reset


NO_ROUTE_TO_HOST

public static final MIMEMailException.Code NO_ROUTE_TO_HOST
No route to host: mail server %1$s cannot be reached

Signals that an error occurred while attempting to connect to remote mail server. Typically, the remote mail server cannot be reached because of an intervening firewall, or if an intermediate router is down.


PORT_UNREACHABLE

public static final MIMEMailException.Code PORT_UNREACHABLE
Port %1$s was unreachable on remote mail server


BROKEN_CONNECTION

public static final MIMEMailException.Code BROKEN_CONNECTION
Connection is broken due to a socket exception on remote mail server: %1$s


SOCKET_ERROR

public static final MIMEMailException.Code SOCKET_ERROR
A socket error occurred: %1$s


UNKNOWN_HOST

public static final MIMEMailException.Code UNKNOWN_HOST
The IP address of host "%1$s" could not be determined


MESSAGING_ERROR

public static final MIMEMailException.Code MESSAGING_ERROR
Messaging error: %1$s


QUOTA_EXCEEDED

public static final MIMEMailException.Code QUOTA_EXCEEDED
The quota on mail server is exceeded


COMMAND_FAILED

public static final MIMEMailException.Code COMMAND_FAILED
A command to mail server failed. Server response: %1$s


COMMAND_FAILED_EXT

public static final MIMEMailException.Code COMMAND_FAILED_EXT
A command failed on mail server %1$s with login %2$s (user=%3$s, context=%4$s). Server response: %5$s


BAD_COMMAND

public static final MIMEMailException.Code BAD_COMMAND
Mail server indicates a bad command. Server response: %1$s


BAD_COMMAND_EXT

public static final MIMEMailException.Code BAD_COMMAND_EXT
Bad command indicated by mail server %1$s with login %2$s (user=%3$s, context=%4$s). Server response: %5$s


PROTOCOL_ERROR

public static final MIMEMailException.Code PROTOCOL_ERROR
An error in mail server protocol. Error message: %1$s


PROTOCOL_ERROR_EXT

public static final MIMEMailException.Code PROTOCOL_ERROR_EXT
An error in protocol to mail server %1$s with login %2$s (user=%3$s, context=%4$s). Error message: %5$s


SEND_FAILED_MSG

public static final MIMEMailException.Code SEND_FAILED_MSG
Message could not be sent: %1$s


MESSAGE_NOT_DISPLAYED

public static final MIMEMailException.Code MESSAGE_NOT_DISPLAYED
Message cannot be displayed.


TRANSPORT_INVALID_CREDENTIALS

public static final MIMEMailException.Code TRANSPORT_INVALID_CREDENTIALS
Wrong or missing login data to access mail transport server %1$s. Error message from mail transport server: %2$s


TRANSPORT_INVALID_CREDENTIALS_EXT

public static final MIMEMailException.Code TRANSPORT_INVALID_CREDENTIALS_EXT
Wrong or missing login data to access mail transport server %1$s with login %2$s (user=%3$s, context=%4$s). Error message from mail transport server: %5$s


PROCESSING_ERROR

public static final MIMEMailException.Code PROCESSING_ERROR
Error processing mail server response. The administrator has been informed.


PROCESSING_ERROR_EXT

public static final MIMEMailException.Code PROCESSING_ERROR_EXT
Error processing %1$s mail server response for login %2$s (user=%3$s, context=%4$s). The administrator has been informed.

Method Detail

values

public static final MIMEMailException.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(MIMEMailException.Code c : MIMEMailException.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 MIMEMailException.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()