javax.mail
类 ReadOnlyFolderException

java.lang.Object
  继承者 java.lang.Throwable
      继承者 java.lang.Exception
          继承者 javax.mail.MessagingException
              继承者 javax.mail.ReadOnlyFolderException
所有已实现的接口:
Serializable

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.

作者:
Jim Glennon
另请参见:
序列化表格

构造方法摘要
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.
 
方法摘要
 Folder getFolder()
          Returns the dead Folder object.
 
从类 javax.mail.MessagingException 继承的方法
getCause, getNextException, setNextException, toString
 
从类 java.lang.Throwable 继承的方法
fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

构造方法详细信息

ReadOnlyFolderException

public ReadOnlyFolderException(Folder folder)
Constructs a MessagingException with the specified folder.

参数:
folder - the Folder
从以下版本开始:
JavaMail 1.2

ReadOnlyFolderException

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

参数:
folder - the Folder
message - the detailed error message
从以下版本开始:
JavaMail 1.2
方法详细信息

getFolder

public Folder getFolder()
Returns the dead Folder object.

从以下版本开始:
JavaMail 1.2


Copyright © 2013. All Rights Reserved.