public class

FolderClosedException

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

Class Overview

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

Following the exception, the GmailFolder is reset to the "closed" state. All messaging objects owned by the GmailFolder should be considered invalid. The GmailFolder 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.

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
FolderClosedException(Folder folder)
Constructor
FolderClosedException(Folder folder, String message)
Constructor
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: 1687879213433302315 (0x176c8d33ac752d2b)

Fields

private Folder folder

Public Constructors

public FolderClosedException (Folder folder)

Constructor

Parameters
folder The GmailFolder

public FolderClosedException (Folder folder, String message)

Constructor

Parameters
folder The GmailFolder
message The detailed error message

Public Methods

public Folder getFolder ()

Returns the dead GmailFolder object