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.
| 构造器和说明 |
|---|
FolderClosedException(Folder folder)
Constructs a FolderClosedException.
|
FolderClosedException(Folder folder,
String message)
Constructs a FolderClosedException with the specified
detail message.
|
FolderClosedException(Folder folder,
String message,
Exception e)
Constructs a FolderClosedException with the specified
detail message and embedded exception.
|
| 限定符和类型 | 方法和说明 |
|---|---|
Folder |
getFolder()
Returns the dead Folder object
|
getCause, getNextException, setNextException, toStringpublic FolderClosedException(Folder folder)
folder - The Folderpublic FolderClosedException(Folder folder, String message)
folder - The Foldermessage - The detailed error messagepublic FolderClosedException(Folder folder, String message, Exception e)
folder - The Foldermessage - The detailed error messagee - The embedded exceptionpublic Folder getFolder()
Copyright © 2021 Oracle. All rights reserved.