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.
| Modifier and Type | Field and Description |
|---|---|
| private transient Folder | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| public | |
| public | FolderClosedException(Folder
The Folder folder, String The detailed error message message)Constructs a FolderClosedException with the specified detail message. |
| public | FolderClosedException(Folder
The Folder folder, String The detailed error message message, Exception The embedded exception e)Constructs a FolderClosedException with the specified detail message and embedded exception. |
| Modifier and Type | Method and Description |
|---|---|
| public Folder |
| folder | back to summary |
|---|---|
| private transient Folder folder | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| FolderClosedException | back to summary |
|---|---|
| public FolderClosedException(Folder folder) Constructs a FolderClosedException.
| |
| FolderClosedException | back to summary |
|---|---|
| public FolderClosedException(Folder folder, String message) Constructs a FolderClosedException with the specified detail message. | |
| FolderClosedException | back to summary |
|---|---|
| public FolderClosedException(Folder folder, String message, Exception e) Constructs a FolderClosedException with the specified detail message and embedded exception. The exception is chained to this exception. | |
| getFolder | back to summary |
|---|---|
| public Folder getFolder() Returns the dead Folder object
| |