Top Description Fields Constructors Methods
jakarta.mail

public Class FolderNotFoundException

extends MessagingException
Class Inheritance

This exception is thrown by Folder methods, when those methods are invoked on a non existent folder.
Author
John Mani

Field Summary

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

Constructor Summary

AccessConstructor and Description
public
FolderNotFoundException()

Constructs a FolderNotFoundException with no detail message.

public
FolderNotFoundException(Folder
The Folder
folder
)

Constructs a FolderNotFoundException.

public
FolderNotFoundException(Folder
The Folder
folder
,
String
The detailed error message
s
)

Constructs a FolderNotFoundException with the specified detail message.

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

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

public
FolderNotFoundException(String
The detail message
s
,
Folder
The Folder
folder
)

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

Method Summary

Modifier and TypeMethod and Description
public Folder

Returns:

the Folder object. Note that the returned value can be null.
getFolder
()

Returns the offending 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

FolderNotFoundExceptionback to summary
public FolderNotFoundException()

Constructs a FolderNotFoundException with no detail message.

FolderNotFoundExceptionback to summary
public FolderNotFoundException(Folder folder)

Constructs a FolderNotFoundException.

Parameters
folder:Folder

The Folder

Since
JavaMail 1.2
FolderNotFoundExceptionback to summary
public FolderNotFoundException(Folder folder, String s)

Constructs a FolderNotFoundException with the specified detail message.

Parameters
folder:Folder

The Folder

s:String

The detailed error message

Since
JavaMail 1.2
FolderNotFoundExceptionback to summary
public FolderNotFoundException(Folder folder, String s, Exception e)

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

Parameters
folder:Folder

The Folder

s:String

The detailed error message

e:Exception

The embedded exception

Since
JavaMail 1.5
FolderNotFoundExceptionback to summary
public FolderNotFoundException(String s, Folder folder)

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

Parameters
s:String

The detail message

folder:Folder

The Folder

Method Detail

getFolderback to summary
public Folder getFolder()

Returns the offending Folder object.

Returns:Folder

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