FolderNotFoundException (Java EE 5)

Java EE API


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
All Implemented Interfaces:
Serializable

public class FolderNotFoundException
extends MessagingException

Extends: Throwable > Exception > MessagingException

当对不存在的文件夹调用 Folder 方法时,这些方法会抛出此异常。
英文文档:

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

Author:
John Mani
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 FolderNotFoundException()
构造不带详细消息的 MessagingException。
英文文档:

FolderNotFoundException

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


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

FolderNotFoundException

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

Parameters:
folder - the Folder
Since:
JavaMail 1.2


public FolderNotFoundException(Folder folder, String s)
构造带指定文件夹和指定详细消息的 MessagingException。
folder Folder
s 详细信息
since
JavaMail 1.2
英文文档:

FolderNotFoundException

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

Parameters:
folder - the Folder
s - the detail message
Since:
JavaMail 1.2


public FolderNotFoundException(String s, Folder folder)
构造带指定详细消息和指定文件夹的 MessagingException。
s 详细信息
folder Folder
英文文档:

FolderNotFoundException

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

Parameters:
s - the detail message
folder - the Folder

Method Detail

public Folder getFolder()
返回有问题的 Folder 对象。
return Folder 对象。注意,返回的值可以为 null
英文文档:

getFolder

public Folder getFolder()
Returns the offending Folder object.

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


Submit a bug or feature

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

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

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