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)
Constructor
|
FolderClosedException(Folder folder,
java.lang.String message)
Constructor
|
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 Folder getFolder()
Copyright © 2012 Oracle. All Rights Reserved.