public class

ReadOnlyFolderException

extends MessagingException
java.lang.Object
   ↳ java.lang.Throwable
     ↳ java.lang.Exception
       ↳ com.google.code.javax.mail.MessagingException
         ↳ com.google.code.javax.mail.ReadOnlyFolderException

Class Overview

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.

Summary

Constants
long serialVersionUID
[Expand]
Inherited Constants
From class com.google.code.javax.mail.MessagingException
From class java.lang.Exception
From class java.lang.Throwable
Fields
private Folder folder
[Expand]
Inherited Fields
From class com.google.code.javax.mail.MessagingException
From class java.lang.Throwable
Public Constructors
ReadOnlyFolderException(Folder folder)
Constructs a MessagingException with the specified folder.
ReadOnlyFolderException(Folder folder, String message)
Constructs a MessagingException with the specified folder and the specified detail message.
Public Methods
Folder getFolder()
Returns the dead GmailFolder object.
[Expand]
Inherited Methods
From class com.google.code.javax.mail.MessagingException
From class java.lang.Throwable
From class java.lang.Object

Constants

private static final long serialVersionUID

Constant Value: 5711829372799039325 (0x4f447e8d4f54375d)

Fields

private Folder folder

Public Constructors

public ReadOnlyFolderException (Folder folder)

Constructs a MessagingException with the specified folder.

Parameters
folder The GmailFolder

public ReadOnlyFolderException (Folder folder, String message)

Constructs a MessagingException with the specified folder and the specified detail message.

Parameters
folder The GmailFolder
message The detailed error message

Public Methods

public Folder getFolder ()

Returns the dead GmailFolder object.