javax.mail
public class: MessagingException [javadoc |
source]
java.lang.Object
java.lang.Throwable
java.lang.Exception
javax.mail.MessagingException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
IllegalWriteException, StoreClosedException, ParseException, NoSuchProviderException, SearchException, ReadOnlyFolderException, AddressException, FolderClosedException, MessageRemovedException, AuthenticationFailedException, MethodNotSupportedException, FolderNotFoundException, SendFailedException
- version:
$ - Rev: 54266 $ $Date: 2004-10-10 14:02:50 -0700 (Sun, 10 Oct 2004) $
| Methods from java.lang.Throwable: |
|---|
|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
| Method from javax.mail.MessagingException Detail: |
public String getMessage() {
Exception next = getNextException();
if (next == null) {
return super.getMessage();
} else {
return super.getMessage()
+ " ("
+ next.getClass().getName()
+ ": "
+ next.getMessage()
+ ")";
}
}
|
public Exception getNextException() {
return next;
}
|
public synchronized boolean setNextException(Exception cause) {
if (next == null) {
initCause(cause);
next = cause;
return true;
} else if (next instanceof MessagingException) {
return ((MessagingException) next).setNextException(cause);
} else {
return false;
}
}
|