This documentation differs from the official API. Jadeite adds extra features to the API including: variable font sizes, constructions examples, placeholders for classes and methods, and auto-generated “See Also” links. Additionally it is missing some items found in standard Javadoc documentation, including: generics type information, “Deprecated” tags and comments, “See Also” links, along with other minor differences. Please send any questions or feedback to bam@cs.cmu.edu.


javax.mail
exception MessagingException

javax.mail.MessagingException

public exception MessagingException
extends Exception

The base class for all exceptions thrown by the Messaging classes


Constructor Summary

          Constructs a MessagingException with no detail message.

          Constructs a MessagingException with the specified detail message.

          Constructs a MessagingException with the specified Exception and detail message.
 
Method Summary
 Throwable

          Overrides the getCause method of Throwable to return the next exception in the chain of nested exceptions.
 Exception

          Get the next exception chained to this one.
 boolean

          Add an exception to the end of the chain.
 String

          Override toString method to provide information on nested exceptions.
 

Constructor Detail

MessagingException

public MessagingException()
Constructs a MessagingException with no detail message.


MessagingException

public MessagingException(String s)
Constructs a MessagingException with the specified detail message.

Parameters:
s - the detail message

MessagingException

public MessagingException(String s,
                          Exception e)
Constructs a MessagingException with the specified Exception and detail message. The specified exception is chained to this exception.

Parameters:
s - the detail message
e - the embedded exception
Method Detail

getCause

public synchronized Throwable getCause()
Overrides the getCause method of Throwable to return the next exception in the chain of nested exceptions.

Overrides:
getCause in class Throwable
Returns:
next Exception, null if none.

getNextException

public synchronized Exception getNextException()
Get the next exception chained to this one. If the next exception is a MessagingException, the chain may extend further.

Returns:
next Exception, null if none.

setNextException

public synchronized boolean setNextException(Exception ex)
Add an exception to the end of the chain. If the end is not a MessagingException, this exception cannot be added to the end.

Parameters:
ex - the new end of the Exception chain
Returns:
true if this Exception was added, false otherwise.

toString

public synchronized String toString()
Override toString method to provide information on nested exceptions.

Overrides:
toString in class Throwable


This documentation differs from the official API. Jadeite adds extra features to the API including: variable font sizes, constructions examples, placeholders for classes and methods, and auto-generated “See Also” links. Additionally it is missing some items found in standard Javadoc documentation, including: generics type information, “Deprecated” tags and comments, “See Also” links, along with other minor differences. Please send any questions or feedback to bam@cs.cmu.edu.
This page displays the Jadeite version of the documention. The official Sun™ documentation can be found here at http://java.sun.com/products/javamail/javadocs/index.html.