FileDocCategorySizeDatePackage
MessagingException.javaAPI DocAndroid 1.5 API2863Wed May 06 22:42:46 BST 2009com.android.email.mail

MessagingException

public class MessagingException extends Exception
This exception is used for most types of failures that occur during server interactions. Data passed through this exception should be considered non-localized. Any strings should either be internal-only (for debugging) or server-generated. TO DO: Does it make sense to further collapse AuthenticationFailedException and CertificateValidationException and any others into this?

Fields Summary
public static final long
serialVersionUID
public static final int
UNSPECIFIED_EXCEPTION
Any exception that does not specify a specific issue
public static final int
IOERROR
Connection or IO errors
public static final int
TLS_REQUIRED
The configuration requested TLS but the server did not support it.
public static final int
AUTH_REQUIRED
Authentication is required but the server did not support it.
public static final int
GENERAL_SECURITY
General security failures
private final int
mExceptionType
Constructors Summary
public MessagingException(String message)

    
    
       
        super(message);
        mExceptionType = UNSPECIFIED_EXCEPTION;
    
public MessagingException(String message, Throwable throwable)

        super(message, throwable);
        mExceptionType = UNSPECIFIED_EXCEPTION;
    
public MessagingException(int exceptionType)
Constructs a MessagingException with an exceptionType and a null message.

param
exceptionType The exception type to set for this exception.

        super();
        mExceptionType = exceptionType;
    
public MessagingException(int exceptionType, String message)
Constructs a MessagingException with an exceptionType and a message.

param
exceptionType The exception type to set for this exception.

        super(message);
        mExceptionType = exceptionType;
    
Methods Summary
public intgetExceptionType()
Return the exception type. Will be OTHER_EXCEPTION if not explicitly set.

return
Returns the exception type.

        return mExceptionType;