Top Description Fields Constructors Methods
jakarta.mail

public Class ReadOnlyFolderException

extends MessagingException
Class Inheritance

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

Field Summary

Modifier and TypeField and Description
private transient Folder
private static final long

Constructor Summary

AccessConstructor and Description
public
ReadOnlyFolderException(Folder
the Folder
folder
)

Constructs a ReadOnlyFolderException with the specified folder and no detail message.

public
ReadOnlyFolderException(Folder
The Folder
folder
,
String
The detailed error message
message
)

Constructs a ReadOnlyFolderException with the specified detail message.

public
ReadOnlyFolderException(Folder
The Folder
folder
,
String
The detailed error message
message
,
Exception
The embedded exception
e
)

Constructs a ReadOnlyFolderException with the specified detail message and embedded exception.

Method Summary

Modifier and TypeMethod and Description
public Folder

Returns:

the Folder
getFolder
()

Returns the Folder object.

Inherited from jakarta.mail.MessagingException:
getCausegetNextExceptionsetNextExceptiontoString

Field Detail

folderback to summary
private transient Folder folder
serialVersionUIDback to summary
private static final long serialVersionUID

Hides jakarta.mail.MessagingException.serialVersionUID.

Constructor Detail

ReadOnlyFolderExceptionback to summary
public ReadOnlyFolderException(Folder folder)

Constructs a ReadOnlyFolderException with the specified folder and no detail message.

Parameters
folder:Folder

the Folder

Since
JavaMail 1.2
ReadOnlyFolderExceptionback to summary
public ReadOnlyFolderException(Folder folder, String message)

Constructs a ReadOnlyFolderException with the specified detail message.

Parameters
folder:Folder

The Folder

message:String

The detailed error message

Since
JavaMail 1.2
ReadOnlyFolderExceptionback to summary
public ReadOnlyFolderException(Folder folder, String message, Exception e)

Constructs a ReadOnlyFolderException with the specified detail message and embedded exception. The exception is chained to this exception.

Parameters
folder:Folder

The Folder

message:String

The detailed error message

e:Exception

The embedded exception

Since
JavaMail 1.5

Method Detail

getFolderback to summary
public Folder getFolder()

Returns the Folder object.

Returns:Folder

the Folder

Since
JavaMail 1.2