FileDocCategorySizeDatePackage
ReadOnlyFolderException.javaAPI DocJavaMail 1.4.33130Tue Nov 17 10:38:12 GMT 2009javax.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;