| java.lang.Object |
| ↳ |
java.lang.Throwable |
| |
↳ |
java.lang.Exception |
| |
|
↳ |
com.google.code.javax.mail.MessagingException |
Known Direct Subclasses
AuthenticationFailedException,
FolderClosedException,
FolderNotFoundException,
IllegalWriteException,
MessageRemovedException,
MethodNotSupportedException,
NoSuchProviderException,
ParseException,
ReadOnlyFolderException,
SMTPAddressSucceededException,
SearchException,
SendFailedException,
StoreClosedException
| AuthenticationFailedException |
This exception is thrown when the connect method on a Store or
Transport object fails due to an authentication failure (e.g.,
bad user name or password). |
| FolderClosedException |
This exception is thrown when a method is invoked on a Messaging object
and the GmailFolder that owns that object has died due to some reason. |
| FolderNotFoundException |
This exception is thrown by GmailFolder methods, when those
methods are invoked on a non existent folder. |
| IllegalWriteException |
The exception thrown when a write is attempted on a read-only attribute
of any Messaging object. |
| MessageRemovedException |
The exception thrown when an invalid method is invoked on an expunged
Message. |
| MethodNotSupportedException |
The exception thrown when a method is not supported by the
implementation |
| NoSuchProviderException |
This exception is thrown when Session attempts to instantiate a
Provider that doesn't exist. |
| ParseException |
The exception thrown due to an error in parsing RFC822
or MIME headers |
| ReadOnlyFolderException |
This exception is thrown when an attempt is made to open a folder
read-write access when the folder is marked read-only. |
| SMTPAddressSucceededException |
This exception is chained off a SendFailedException when the
mail.smtp.reportsuccess property is true. |
| SearchException |
The exception thrown when a Search expression could not be handled. |
| SendFailedException |
This exception is thrown when the message cannot be sent. |
| StoreClosedException |
This exception is thrown when a method is invoked on a Messaging object
and the Store that owns that object has died due to some reason. |
|
Known Indirect Subclasses
|
Class Overview
The base class for all exceptions thrown by the Messaging classes
Summary
|
[Expand]
Inherited Constants |
From class
java.lang.Exception
|
From class
java.lang.Throwable
|
| Fields |
|
private
Exception |
next |
The next exception in the chain. |
|
[Expand]
Inherited Fields |
From class
java.lang.Throwable
|
private
Object |
backtrace |
|
|
private
Throwable |
cause |
|
|
private
String |
detailMessage |
|
|
private
StackTraceElement[] |
stackTrace |
|
|
| Public Constructors |
|
|
MessagingException()
Constructs a MessagingException with no detail message.
|
|
|
MessagingException(String s)
Constructs a MessagingException with the specified detail message.
|
|
|
MessagingException(String s, Exception e)
Constructs a MessagingException with the specified
Exception and detail message.
|
| Public Methods |
|
synchronized
Throwable
|
getCause()
Overrides the getCause method of Throwable
to return the next exception in the chain of nested exceptions.
|
|
synchronized
Exception
|
getNextException()
Get the next exception chained to this one.
|
|
synchronized
boolean
|
setNextException(Exception ex)
Add an exception to the end of the chain.
|
|
synchronized
String
|
toString()
Override toString method to provide information on
nested exceptions.
|
|
[Expand]
Inherited Methods |
From class
java.lang.Throwable
|
synchronized
Throwable
|
fillInStackTrace()
|
|
Throwable
|
getCause()
|
|
String
|
getLocalizedMessage()
|
|
String
|
getMessage()
|
|
StackTraceElement[]
|
getStackTrace()
|
|
synchronized
Throwable
|
initCause(Throwable arg0)
|
|
void
|
printStackTrace(PrintWriter arg0)
|
|
void
|
printStackTrace(PrintStream arg0)
|
|
void
|
printStackTrace()
|
|
void
|
setStackTrace(StackTraceElement[] arg0)
|
|
String
|
toString()
|
|
From class
java.lang.Object
|
Object
|
clone()
|
|
boolean
|
equals(Object arg0)
|
|
void
|
finalize()
|
|
final
Class<?>
|
getClass()
|
|
int
|
hashCode()
|
|
final
void
|
notify()
|
|
final
void
|
notifyAll()
|
|
String
|
toString()
|
|
final
void
|
wait()
|
|
final
void
|
wait(long arg0, int arg1)
|
|
final
void
|
wait(long arg0)
|
|
Constants
private
static
final
long
serialVersionUID
Constant Value:
-7569192289819959253
(0x96f4d3b738a7e02b)
Fields
private
Exception
next
The next exception in the chain.
Public Constructors
public
MessagingException
()
Constructs a MessagingException with no detail message.
public
MessagingException
(String s)
Constructs a MessagingException with the specified detail message.
public
MessagingException
(String s, Exception e)
Constructs a MessagingException with the specified
Exception and detail message. The specified exception is chained
to this exception.
Parameters
| s
| The detail message |
| e
| The embedded exception |
Public Methods
public
synchronized
Throwable
getCause
()
Overrides the getCause method of Throwable
to return the next exception in the chain of nested exceptions.
Returns
- next Exception, null if none.
public
synchronized
Exception
getNextException
()
Get the next exception chained to this one. If the
next exception is a MessagingException, the chain
may extend further.
Returns
- next Exception, null if none.
public
synchronized
boolean
setNextException
(Exception ex)
Add an exception to the end of the chain. If the end
is not a MessagingException, this
exception cannot be added to the end.
Parameters
| ex
| The new end of the Exception chain |
Returns
true if this Exception
was added, false otherwise.
public
synchronized
String
toString
()
Override toString method to provide information on
nested exceptions.