javax.mail
Class MessagingException
Exception
javax.mail.MessagingException
public class MessagingException
extends Exception
A general messaging exception.
MessagingException() - Constructs a messaging exception with no detail message.
|
MessagingException(String message) - Constructs a messaging exception with the specified detail message.
|
MessagingException(String message, Exception exception) - Constructs a messaging exception with the specified exception and detail
message.
|
MessagingException
public MessagingException()
Constructs a messaging exception with no detail message.
MessagingException
public MessagingException(String message)
Constructs a messaging exception with the specified detail message.
message
- the detail message
MessagingException
public MessagingException(String message,
Exception exception)
Constructs a messaging exception with the specified exception and detail
message.
message
- the detail messageexception
- the embedded exception
getMessage
public String getMessage()
Returns the message, including the message from any nested exception.
getNextException
public Exception getNextException()
Returns the next exception chained to this one.
If the next exception is a messaging exception, the chain may extend
further.
printStackTrace
public void printStackTrace(PrintStream out)
printStackTrace
public void printStackTrace(PrintWriter out)
setNextException
public boolean setNextException(Exception exception)
Adds an exception to the end of the chain.
If the end is not a messaging exception, this exception cannot be added
to the end.
exception
- the new end of the exception chain
- true if this exception was added, false otherwise.
© Copyright 2003, 2004
The Free Software Foundation, All rights reserved