javax.mail

Class 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.

Constructor Summary

ReadOnlyFolderException(Folder folder)
ReadOnlyFolderException(Folder folder, String message)

Method Summary

Folder
getFolder()
Returns the dead Folder object.

Methods inherited from class javax.mail.MessagingException

getMessage, getNextException, printStackTrace, printStackTrace, setNextException

Constructor Details

ReadOnlyFolderException

public ReadOnlyFolderException(Folder folder)


ReadOnlyFolderException

public ReadOnlyFolderException(Folder folder,
                               String message)

Method Details

getFolder

public Folder getFolder()
Returns the dead Folder object.