FileDocCategorySizeDatePackage
FolderClosedException.javaAPI DocGlassfish v2 API3221Mon May 14 15:28:48 BST 2007javax.mail

FolderClosedException

public class FolderClosedException extends MessagingException
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.

author
John Mani

Fields Summary
private transient Folder
folder
private static final long
serialVersionUID
Constructors Summary
public FolderClosedException(Folder folder)
Constructor

param
folder the Folder

    
       	      
       
	this(folder, null);
    
public FolderClosedException(Folder folder, String message)
Constructor

param
folder the Folder
param
message the detailed error message

	super(message);
	this.folder = folder;
    
Methods Summary
public javax.mail.FoldergetFolder()
Returns the dead Folder object

	return folder;