public class ReadOnlyFolderException extends MessagingException
The getMessage() method returns more detailed information about the error that caused this exception.
Constructor and Description |
---|
ReadOnlyFolderException(Folder folder)
Constructs a MessagingException with the specified folder.
|
ReadOnlyFolderException(Folder folder,
java.lang.String message)
Constructs a MessagingException with the specified folder and
the specified detail message.
|
Modifier and Type | Method and Description |
---|---|
Folder |
getFolder()
Returns the dead Folder object.
|
getCause, getNextException, setNextException, toString
public ReadOnlyFolderException(Folder folder)
folder
- the Folderpublic ReadOnlyFolderException(Folder folder, java.lang.String message)
folder
- the Foldermessage
- the detailed error messagepublic Folder getFolder()
Copyright © 2012 Oracle. All Rights Reserved.