com.openexchange.messaging
Enum MessagingExceptionCodes

java.lang.Object
  extended by java.lang.Enum<MessagingExceptionCodes>
      extended by com.openexchange.messaging.MessagingExceptionCodes
All Implemented Interfaces:
com.openexchange.exceptions.OXErrorMessage, java.io.Serializable, java.lang.Comparable<MessagingExceptionCodes>

public enum MessagingExceptionCodes
extends java.lang.Enum<MessagingExceptionCodes>
implements com.openexchange.exceptions.OXErrorMessage

MessagingExceptionCodes - Enumeration of all MessagingExceptions.

Since:
Open-Xchange v6.16
Author:
Thorben Betten

Enum Constant Summary
ACCOUNT_NOT_FOUND
          Messaging account %1$s of service "%2$s" could not be found for user %3$s in context %4$s.
ADDRESS_ERROR
          Wrongly formatted address: %1$s.
ATTACHMENT_NOT_FOUND
          No attachment found with section identifier %1$s in message %2$s in folder %3$s.
DUPLICATE_FOLDER
          A duplicate folder named "%1$s" already exists below parent folder "%2$s".
FOLDER_NOT_FOUND
          The folder "%1$s" cannot be found in account %2$s of service "%3$s" of user %4$s in context %5$s.
INVALID_HEADER
          Invalid header "%1$s": %2$s
INVALID_MESSAGE_IDENTIFIER
          Invalid message identifier: %1$s
INVALID_PARAMETER
          Invalid parameter: %1$s with value '%2$s'.
INVALID_SORTING_COLUMN
          Invalid sorting column.
IO_ERROR
          An I/O error occurred: %1$s
JSON_ERROR
          An I/O error occurred: %1$s
MESSAGE_NOT_FOUND
          Message %1$s not found in folder %2$s.
MESSAGING_ERROR
          A messaging error occurred: %1$s
MISSING_PARAMETER
          Missing parameter: %1$s.
NO_CREATE_ACCESS
          No create access on mail folder %1$s.
NOT_CONNECTED
          Not connected
OPERATION_NOT_SUPPORTED
          The operation is not supported by service %1$s.
READ_ONLY
          Messaging part is read-only: %1$s
SQL_ERROR
          A SQL error occurred: %1$s
UNEXPECTED_ERROR
          An error occurred: %1$s
UNKNOWN_ACTION
          Unknown action to perform: %1$s.
UNKNOWN_COLOR_LABEL
          Unknown color label index: %1$s
UNKNOWN_MESSAGING_CONTENT
          Unknown messaging content: %1$s.
UNKNOWN_MESSAGING_SERVICE
          Unknown messaging service: %1$s.
 
Method Summary
 MessagingException create()
          Creates a new messaging exception of this error type with no message arguments.
 MessagingException create(java.lang.Object... messageArgs)
          Creates a new messaging exception of this error type with specified message arguments.
 MessagingException create(java.lang.Throwable cause, java.lang.Object... messageArgs)
          Creates a new messaging exception of this error type with specified cause and message arguments.
 com.openexchange.groupware.AbstractOXException.Category getCategory()
           
 int getDetailNumber()
           
 java.lang.String getHelp()
           
 java.lang.String getMessage()
           
static MessagingExceptionCodes valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static MessagingExceptionCodes[] 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 MessagingExceptionCodes UNEXPECTED_ERROR
An error occurred: %1$s


SQL_ERROR

public static final MessagingExceptionCodes SQL_ERROR
A SQL error occurred: %1$s


IO_ERROR

public static final MessagingExceptionCodes IO_ERROR
An I/O error occurred: %1$s


JSON_ERROR

public static final MessagingExceptionCodes JSON_ERROR
An I/O error occurred: %1$s


ACCOUNT_NOT_FOUND

public static final MessagingExceptionCodes ACCOUNT_NOT_FOUND
Messaging account %1$s of service "%2$s" could not be found for user %3$s in context %4$s.


OPERATION_NOT_SUPPORTED

public static final MessagingExceptionCodes OPERATION_NOT_SUPPORTED
The operation is not supported by service %1$s.


FOLDER_NOT_FOUND

public static final MessagingExceptionCodes FOLDER_NOT_FOUND
The folder "%1$s" cannot be found in account %2$s of service "%3$s" of user %4$s in context %5$s.


INVALID_MESSAGE_IDENTIFIER

public static final MessagingExceptionCodes INVALID_MESSAGE_IDENTIFIER
Invalid message identifier: %1$s


INVALID_HEADER

public static final MessagingExceptionCodes INVALID_HEADER
Invalid header "%1$s": %2$s


UNKNOWN_ACTION

public static final MessagingExceptionCodes UNKNOWN_ACTION
Unknown action to perform: %1$s.


MESSAGING_ERROR

public static final MessagingExceptionCodes MESSAGING_ERROR
A messaging error occurred: %1$s


ADDRESS_ERROR

public static final MessagingExceptionCodes ADDRESS_ERROR
Wrongly formatted address: %1$s.


UNKNOWN_MESSAGING_CONTENT

public static final MessagingExceptionCodes UNKNOWN_MESSAGING_CONTENT
Unknown messaging content: %1$s.


UNKNOWN_MESSAGING_SERVICE

public static final MessagingExceptionCodes UNKNOWN_MESSAGING_SERVICE
Unknown messaging service: %1$s.


MISSING_PARAMETER

public static final MessagingExceptionCodes MISSING_PARAMETER
Missing parameter: %1$s.


INVALID_PARAMETER

public static final MessagingExceptionCodes INVALID_PARAMETER
Invalid parameter: %1$s with value '%2$s'.


READ_ONLY

public static final MessagingExceptionCodes READ_ONLY
Messaging part is read-only: %1$s


UNKNOWN_COLOR_LABEL

public static final MessagingExceptionCodes UNKNOWN_COLOR_LABEL
Unknown color label index: %1$s


DUPLICATE_FOLDER

public static final MessagingExceptionCodes DUPLICATE_FOLDER
A duplicate folder named "%1$s" already exists below parent folder "%2$s".


NO_CREATE_ACCESS

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


NOT_CONNECTED

public static final MessagingExceptionCodes NOT_CONNECTED
Not connected


INVALID_SORTING_COLUMN

public static final MessagingExceptionCodes INVALID_SORTING_COLUMN
Invalid sorting column. Cannot sort by %1$s.


ATTACHMENT_NOT_FOUND

public static final MessagingExceptionCodes ATTACHMENT_NOT_FOUND
No attachment found with section identifier %1$s in message %2$s in folder %3$s.


MESSAGE_NOT_FOUND

public static final MessagingExceptionCodes MESSAGE_NOT_FOUND
Message %1$s not found in folder %2$s.

Method Detail

values

public static final MessagingExceptionCodes[] 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(MessagingExceptionCodes c : MessagingExceptionCodes.values())
        System.out.println(c);

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

valueOf

public static MessagingExceptionCodes 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()
Specified by:
getCategory in interface com.openexchange.exceptions.OXErrorMessage

getMessage

public java.lang.String getMessage()
Specified by:
getMessage in interface com.openexchange.exceptions.OXErrorMessage

getDetailNumber

public int getDetailNumber()
Specified by:
getDetailNumber in interface com.openexchange.exceptions.OXErrorMessage

getHelp

public java.lang.String getHelp()
Specified by:
getHelp in interface com.openexchange.exceptions.OXErrorMessage

create

public MessagingException create()
Creates a new messaging exception of this error type with no message arguments.

Returns:
A new twitter exception

create

public MessagingException create(java.lang.Object... messageArgs)
Creates a new messaging exception of this error type with specified message arguments.

Parameters:
messageArgs - The message arguments
Returns:
A new twitter exception

create

public MessagingException create(java.lang.Throwable cause,
                                 java.lang.Object... messageArgs)
Creates a new messaging exception of this error type with specified cause and message arguments.

Parameters:
cause - The cause
messageArgs - The message arguments
Returns:
A new twitter exception