public class FolderClosedException extends MessagingException
Following the exception, the Folder is reset to the "closed" state. All messaging objects owned by the Folder should be considered invalid. The Folder can be reopened using the "open" method to reestablish the lost connection.
The getMessage() method returns more detailed information about the error that caused this exception.
Constructor and Description |
---|
FolderClosedException(Folder folder)
Constructs a FolderClosedException.
|
FolderClosedException(Folder folder,
java.lang.String message)
Constructs a FolderClosedException with the specified
detail message.
|
FolderClosedException(Folder folder,
java.lang.String message,
java.lang.Exception e)
Constructs a FolderClosedException with the specified
detail message and embedded exception.
|
Modifier and Type | Method and Description |
---|---|
Folder |
getFolder()
Returns the dead Folder object
|
getCause, getNextException, setNextException, toString
public FolderClosedException(Folder folder)
folder
- The Folderpublic FolderClosedException(Folder folder, java.lang.String message)
folder
- The Foldermessage
- The detailed error messagepublic FolderClosedException(Folder folder, java.lang.String message, java.lang.Exception e)
folder
- The Foldermessage
- The detailed error messagee
- The embedded exceptionpublic Folder getFolder()