ReadOnlyFolderExceptionpublic 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. |
Fields Summary |
---|
private transient Folder | folder | private static final long | serialVersionUID |
Constructors Summary |
---|
public ReadOnlyFolderException(Folder folder)Constructs a MessagingException with the specified folder.
this(folder, null);
| public ReadOnlyFolderException(Folder folder, String message)Constructs a MessagingException with the specified folder and
the specified detail message.
super(message);
this.folder = folder;
|
Methods Summary |
---|
public javax.mail.Folder | getFolder()Returns the dead Folder object.
return folder;
|
|