|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
javax.mail.MessagingException
public class MessagingException
A general messaging exception.
| Constructor Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
String |
getMessage()
Returns the message, including the message from any nested exception. |
Exception |
getNextException()
Returns the next exception chained to this one. |
void |
printStackTrace(PrintStream out)
|
void |
printStackTrace(PrintWriter out)
|
boolean |
setNextException(Exception exception)
Adds an exception to the end of the chain. |
| Methods inherited from class java.lang.Throwable |
|---|
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, setStackTrace, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public MessagingException()
public MessagingException(String message)
message - the detail message
public MessagingException(String message,
Exception exception)
message - the detail messageexception - the embedded exception| Method Detail |
|---|
public Exception getNextException()
public boolean setNextException(Exception exception)
exception - the new end of the exception chain
public String getMessage()
getMessage in class Throwablepublic void printStackTrace(PrintStream out)
printStackTrace in class Throwablepublic void printStackTrace(PrintWriter out)
printStackTrace in class Throwable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||