FileDocCategorySizeDatePackage
ReadOnlyFolderException.javaAPI DocGlassfish v2 API3187Mon May 14 15:28:48 BST 2007javax.mail

ReadOnlyFolderException

public class ReadOnlyFolderException extends MessagingException
This exception is thrown when an attempt is made to open a folder read-write access when the folder is marked read-only.

The getMessage() method returns more detailed information about the error that caused this exception.

author
Jim Glennon

Fields Summary
private transient Folder
folder
private static final long
serialVersionUID
Constructors Summary
public ReadOnlyFolderException(Folder folder)
Constructs a MessagingException with the specified folder.

param
folder the Folder
since
JavaMail 1.2

    
             	   		      
       
	this(folder, null);
    
public ReadOnlyFolderException(Folder folder, String message)
Constructs a MessagingException with the specified folder and the specified detail message.

param
folder the Folder
param
message the detailed error message
since
JavaMail 1.2

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

since
JavaMail 1.2

	return folder;