⇒ Index (Frames) |  ⇒ Index (No Frames) |  ⇒ Package |  ⇒ Package Tree |  ⇒ Full Tree 
javax.mail

Class ReadOnlyFolderException

Exception
|
+--javax.mail.MessagingException
   |
   +--javax.mail.ReadOnlyFolderException


public class ReadOnlyFolderException
extends MessagingException

This exception is thrown when an attempt is made to open a folder read-write access when the folder is marked read-only.

The getMessage() method returns more detailed information about the error that caused this exception.

Author:

Constructor Summary

ReadOnlyFolderException(Folder folder)

ReadOnlyFolderException(Folder folder, String message)

Method Summary

Folder

getFolder()

Returns the dead Folder object.

Constructor Details

ReadOnlyFolderException

public ReadOnlyFolderException(Folder folder)

Parameters:
folder

ReadOnlyFolderException

public ReadOnlyFolderException(Folder folder, String message)

Parameters:
folder
message

Method Details

getFolder

public Folder getFolder()

Returns the dead Folder object.