|
||||||||||
| 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(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. |
|
| Method Summary | |
|---|---|
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. |
| 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(java.lang.String message)
message - the detail message
public MessagingException(java.lang.String message,
java.lang.Exception exception)
message - the detail messageexception - the embedded exception| Method Detail |
|---|
public java.lang.Exception getNextException()
public boolean setNextException(java.lang.Exception exception)
exception - the new end of the exception chain
public java.lang.String getMessage()
getMessage in class java.lang.Throwablepublic void printStackTrace(java.io.PrintStream out)
printStackTrace in class java.lang.Throwablepublic void printStackTrace(java.io.PrintWriter out)
printStackTrace in class java.lang.Throwable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||