|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
javax.mail Class FolderNotFoundException
java.lang.Object java.lang.Throwable java.lang.Exception javax.mail.MessagingException 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 | |
---|---|
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. |
Method Summary | |
---|---|
Folder |
getFolder()
Returns the offending 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
FolderNotFoundException()
构造不带详细消息的 MessagingException。
英文文档:
FolderNotFoundException
public FolderNotFoundException()
- Constructs a MessagingException with no detail message.
public
FolderNotFoundException(Folder folder)
构造带指定文件夹的 MessagingException。
folder | Folder | |
since |
|
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 |
|
FolderNotFoundException
public FolderNotFoundException(Folder folder, String s)
- Constructs a MessagingException with the specified folder and
the specified detail message.
- Parameters:
folder
- the Folders
- 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 messagefolder
- 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
.
|
|||||||||
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 : 未经我党受权你也可自由散发此文档。 如有任何错误请自行修正;若因此而造成任何损失请直接找人民主席,请勿与本人联系。谢谢!