public class

FolderNotFoundException

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

Class Overview

This exception is thrown by GmailFolder methods, when those methods are invoked on a non existent folder.

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
FolderNotFoundException()
Constructs a MessagingException with no detail message.
FolderNotFoundException(Folder folder)
Constructs a MessagingException with the specified folder.
FolderNotFoundException(Folder folder, String s)
Constructs a MessagingException with the specified folder and the specified detail message.
FolderNotFoundException(String s, Folder folder)
Constructs a MessagingException with the specified detail message and the specified folder.
Public Methods
Folder getFolder()
Returns the offending 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: 472612108891249403 (0x068f0e358302dafb)

Fields

private Folder folder

Public Constructors

public FolderNotFoundException ()

Constructs a MessagingException with no detail message.

public FolderNotFoundException (Folder folder)

Constructs a MessagingException with the specified folder.

Parameters
folder The GmailFolder

public FolderNotFoundException (Folder folder, String s)

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

Parameters
folder The GmailFolder
s The detail message

public FolderNotFoundException (String s, Folder folder)

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

Parameters
s The detail message
folder The GmailFolder

Public Methods

public Folder getFolder ()

Returns the offending GmailFolder object.

Returns
  • the GmailFolder object. Note that the returned value can be null.