|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
javax.mail Class ReadOnlyFolderException
java.lang.Object java.lang.Throwable java.lang.Exception javax.mail.MessagingException javax.mail.ReadOnlyFolderException
- All Implemented Interfaces:
- Serializable
public class ReadOnlyFolderException
- extends MessagingException
Extends:
Throwable > Exception > MessagingException
如果试图对标记为只读的文件夹进行读写访问,则抛出此异常。
getMessage() 方法返回更详细的有关导致此异常的错误的信息。
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:
- Jim Glennon
- See Also:
- Serialized Form
Constructor Summary | |
---|---|
ReadOnlyFolderException(Folder folder)
Constructs a MessagingException with the specified folder. |
|
ReadOnlyFolderException(Folder folder,
String message)
Constructs a MessagingException with the specified folder and the specified detail message. |
Method Summary | |
---|---|
Folder |
getFolder()
Returns the dead Folder object. |
Methods inherited from class javax.mail.MessagingException |
---|
getCause, getNextException, setNextException, toString |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public
ReadOnlyFolderException(Folder folder)
构造带指定文件夹的 MessagingException。
folder | Folder | |
since |
|
ReadOnlyFolderException
public ReadOnlyFolderException(Folder folder)
- Constructs a MessagingException with the specified folder.
- Parameters:
folder
- the Folder- Since:
- JavaMail 1.2
public
ReadOnlyFolderException(Folder folder, String message)
构造带指定文件夹和指定详细消息的 MessagingException。
folder | Folder | |
message | 详细的错误消息 | |
since |
|
ReadOnlyFolderException
public ReadOnlyFolderException(Folder folder, String message)
- Constructs a MessagingException with the specified folder and
the specified detail message.
- Parameters:
folder
- the Foldermessage
- the detailed error message- Since:
- JavaMail 1.2
Method Detail |
---|
public Folder
getFolder()
返回停止运行的 Folder 对象。
since |
|
getFolder
public Folder getFolder()
- Returns the dead Folder object.
- Since:
- JavaMail 1.2
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Submit a bug or feature
Copyright 2007 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.
PS : 未经我党受权你也可自由散发此文档。 如有任何错误请自行修正;若因此而造成任何损失请直接找人民主席,请勿与本人联系。谢谢!