FolderNotFoundException (Java EE 5 SDK)

Java

Java EE 5 SDK

深圳电信培训中心.徐海蛟老师.


javax.mail Class FolderNotFoundException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by javax.mail.MessagingException
              extended by javax.mail.FolderNotFoundException
所有已实现的接口:
Serializable

public class FolderNotFoundException
extends MessagingException

This exception is thrown by Folder methods, when those methods are invoked on a non existent folder.

作者:
John Mani
另请参见:
Serialized Form

构造器摘要
FolderNotFoundException()
          Constructs a MessagingException with no detail message.
FolderNotFoundException(Folder folder)
          Constructs a MessagingException with the specified folder.
FolderNotFoundException(Folder folder, String s)
          Constructs a MessagingException with the specified folder and the specified detail message.
FolderNotFoundException(String s, Folder folder)
          Constructs a MessagingException with the specified detail message and the specified folder.
 
方法摘要
 Folder getFolder()
          Returns the offending 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
 

构造器详细信息

FolderNotFoundException

public FolderNotFoundException()
Constructs a MessagingException with no detail message.


FolderNotFoundException

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

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


FolderNotFoundException

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

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


FolderNotFoundException

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

参数:
s - the detail message
folder - the Folder

方法详细信息

getFolder

public Folder getFolder()
Returns the offending Folder object.

返回:
the Folder object. Note that the returned value can be null.

Java EE 5 SDK

深圳电信培训中心.徐海蛟老师.


提交错误或意见

版权所有 2007 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。深圳电信培训中心.徐海蛟老师教学参考.