org.codemonkey.simplejavamail
Class MailException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.codemonkey.simplejavamail.MailException
All Implemented Interfaces:
Serializable

public final class MailException
extends RuntimeException

This exception is used to communicate errors during the sending of email.

Author:
Benny Bottema
See Also:
Serialized Form

Field Summary
protected static String GENERIC_ERROR
           
protected static String INVALID_ENCODING
           
protected static String INVALID_RECIPIENT
           
protected static String INVALID_REPLYTO
           
protected static String INVALID_SENDER
           
protected static String MISSING_CONTENT
           
protected static String MISSING_HOST
           
protected static String MISSING_RECIPIENT
           
protected static String MISSING_SENDER
           
protected static String MISSING_SUBJECT
           
protected static String MISSING_USERNAME
           
 
Constructor Summary
protected MailException(String message)
           
protected MailException(String message, javax.mail.MessagingException cause)
           
 
Method Summary
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

GENERIC_ERROR

protected static final String GENERIC_ERROR
See Also:
Constant Field Values

MISSING_HOST

protected static final String MISSING_HOST
See Also:
Constant Field Values

MISSING_USERNAME

protected static final String MISSING_USERNAME
See Also:
Constant Field Values

INVALID_ENCODING

protected static final String INVALID_ENCODING
See Also:
Constant Field Values

INVALID_RECIPIENT

protected static final String INVALID_RECIPIENT
See Also:
Constant Field Values

INVALID_REPLYTO

protected static final String INVALID_REPLYTO
See Also:
Constant Field Values

INVALID_SENDER

protected static final String INVALID_SENDER
See Also:
Constant Field Values

MISSING_SENDER

protected static final String MISSING_SENDER
See Also:
Constant Field Values

MISSING_RECIPIENT

protected static final String MISSING_RECIPIENT
See Also:
Constant Field Values

MISSING_SUBJECT

protected static final String MISSING_SUBJECT
See Also:
Constant Field Values

MISSING_CONTENT

protected static final String MISSING_CONTENT
See Also:
Constant Field Values
Constructor Detail

MailException

protected MailException(String message)

MailException

protected MailException(String message,
                        javax.mail.MessagingException cause)


Copyright © 2011. All Rights Reserved.