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,
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.
|
Modifier and Type | Method and Description |
---|---|
Folder |
getFolder()
Returns the dead Folder object
|
getCause, getNextException, setNextException, toString
addSuppressed, fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
public 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 © 2016 JBoss by Red Hat. All rights reserved.