javax.mail
public class MessagingException extends java.lang.Exception
Constructor and Description |
---|
MessagingException()
Constructs a messaging exception with no detail message.
|
MessagingException(java.lang.String message)
Constructs a messaging exception with the specified detail message.
|
MessagingException(java.lang.String message,
java.lang.Exception exception)
Constructs a messaging exception with the specified exception and detail
message.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getMessage()
Returns the message, including the message from any nested exception.
|
java.lang.Exception |
getNextException()
Returns the next exception chained to this one.
|
void |
printStackTrace(java.io.PrintStream out) |
void |
printStackTrace(java.io.PrintWriter out) |
boolean |
setNextException(java.lang.Exception exception)
Adds an exception to the end of the chain.
|
public MessagingException()
public MessagingException(java.lang.String message)
message
- the detail messagepublic MessagingException(java.lang.String message, java.lang.Exception exception)
message
- the detail messageexception
- the embedded exceptionpublic java.lang.Exception getNextException()
public boolean setNextException(java.lang.Exception exception)
exception
- the new end of the exception chainpublic java.lang.String getMessage()
getMessage
in class java.lang.Throwable
public void printStackTrace(java.io.PrintStream out)
printStackTrace
in class java.lang.Throwable
public void printStackTrace(java.io.PrintWriter out)
printStackTrace
in class java.lang.Throwable
© Copyright 2003, 2004 The Free Software Foundation, All rights reserved