FileDocCategorySizeDatePackage
FolderNotFoundException.javaAPI DocGlassfish v2 API3557Mon May 14 15:28:48 BST 2007javax.mail

FolderNotFoundException

public class FolderNotFoundException extends MessagingException
This exception is thrown by Folder methods, when those methods are invoked on a non existent folder.
author
John Mani

Fields Summary
private transient Folder
folder
private static final long
serialVersionUID
Constructors Summary
public FolderNotFoundException()
Constructs a MessagingException with no detail message.


                
      
	super();
    
public FolderNotFoundException(Folder folder)
Constructs a MessagingException with the specified folder.

param
folder the Folder
since
JavaMail 1.2

	super();
        this.folder = folder;
    
public FolderNotFoundException(Folder folder, String s)
Constructs a MessagingException with the specified folder and the specified detail message.

param
folder the Folder
param
s the detail message
since
JavaMail 1.2

	super(s);
	this.folder = folder;
    
public FolderNotFoundException(String s, Folder folder)
Constructs a MessagingException with the specified detail message and the specified folder.

param
s the detail message
param
folder the Folder

	super(s);
	this.folder = folder;
    
Methods Summary
public javax.mail.FoldergetFolder()
Returns the offending Folder object.

return
the Folder object. Note that the returned value can be null.

	return folder;