ReadOnlyFolderException (Java EE 5)

Java EE API


javax.mail Class ReadOnlyFolderException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by javax.mail.MessagingException
              extended by 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
 
Method Summary
 Folder
 
Methods inherited from class javax.mail.MessagingException
 
Methods inherited from class java.lang.Throwable
 
Methods inherited from class java.lang.Object
 

Constructor Detail

public ReadOnlyFolderException(Folder folder)
构造带指定文件夹的 MessagingException。
folder Folder
since
JavaMail 1.2
英文文档:

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
JavaMail 1.2
英文文档:

ReadOnlyFolderException

public ReadOnlyFolderException(Folder folder,
                               String message)
Constructs a MessagingException with the specified folder and the specified detail message.

Parameters:
folder - the Folder
message - the detailed error message
Since:
JavaMail 1.2

Method Detail

public Folder getFolder()
返回停止运行的 Folder 对象。
since
JavaMail 1.2
英文文档:

getFolder

public Folder getFolder()
Returns the dead Folder object.

Since:
JavaMail 1.2


Submit a bug or feature

Copyright 2007 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.

一看就知道只有菜鸟才干这么无知的事啦。

PS : 未经我党受权你也可自由散发此文档。 如有任何错误请自行修正;若因此而造成任何损失请直接找人民主席,请勿与本人联系。谢谢!