java.lang.Object | +--java.lang.Throwable | +--java.lang.Exception | +--javax.mail.MessagingException | +--javax.mail.FolderClosedException
This exception is thrown when a method is invoked on a Messaging object and the Folder that owns that object has died due to some reason.
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)
FolderClosedException(Folder folder,
java.lang.String message)
fillInStackTrace, getLocalizedMessage, printStackTrace, printStackTrace, printStackTrace, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
public FolderClosedException(Folder folder)
folder
- the Folderpublic FolderClosedException(Folder folder, java.lang.String message)
folder
- the Foldermessage
- the detailed error messagepublic Folder getFolder()