javax.mail

Class FolderNotFoundException


public class FolderNotFoundException
extends MessagingException

This exception is thrown by Folder methods, when those methods are invoked on a nonexistent folder.

Constructor Summary

FolderNotFoundException()
FolderNotFoundException(String message, Folder folder)
FolderNotFoundException(Folder folder)
FolderNotFoundException(Folder folder, String message)

Method Summary

Folder
getFolder()
Returns the offending Folder object.

Methods inherited from class javax.mail.MessagingException

getMessage, getNextException, printStackTrace, printStackTrace, setNextException

Constructor Details

FolderNotFoundException

public FolderNotFoundException()


FolderNotFoundException

public FolderNotFoundException(String message,
                               Folder folder)


FolderNotFoundException

public FolderNotFoundException(Folder folder)


FolderNotFoundException

public FolderNotFoundException(Folder folder,
                               String message)

Method Details

getFolder

public Folder getFolder()
Returns the offending Folder object.