Top Description Fields Constructors Methods
javax.mail

public Class FolderClosedException

extends MessagingException
Class Inheritance

This exception is thrown when a method is invoked on a Messaging object and the Folder that owns that object has died due to some reason.

Following the exception, the Folder is reset to the "closed" state. All messaging objects owned by the Folder should be considered invalid. The Folder can be reopened using the "open" method to reestablish the lost connection.

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

Author
John Mani

Field Summary

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

Constructor Summary

AccessConstructor and Description
public
FolderClosedException(Folder
The Folder
folder
)

Constructs a FolderClosedException.

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

Constructs a FolderClosedException with the specified detail message.

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

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

Method Summary

Modifier and TypeMethod and Description
public Folder

Returns:

the dead Folder object
getFolder
()

Returns the dead Folder object

Inherited from javax.mail.MessagingException:
getCausegetNextExceptionsetNextExceptiontoString

Field Detail

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

Hides javax.mail.MessagingException.serialVersionUID.

Constructor Detail

FolderClosedExceptionback to summary
public FolderClosedException(Folder folder)

Constructs a FolderClosedException.

Parameters
folder:Folder

The Folder

FolderClosedExceptionback to summary
public FolderClosedException(Folder folder, String message)

Constructs a FolderClosedException with the specified detail message.

Parameters
folder:Folder

The Folder

message:String

The detailed error message

FolderClosedExceptionback to summary
public FolderClosedException(Folder folder, String message, Exception e)

Constructs a FolderClosedException 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 dead Folder object

Returns:Folder

the dead Folder object