|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
javax.mail Class StoreClosedException
java.lang.Object java.lang.Throwable java.lang.Exception javax.mail.MessagingException javax.mail.StoreClosedException
- All Implemented Interfaces:
- Serializable
public class StoreClosedException
- extends MessagingException
当在 Messaging 对象上调用某个方法而拥有该对象的 Store 由于某个原因已经停用时,抛出此异常。此异常应该被视为致命错误;尤其是,属于该 Store 的所有 Messaging 对象都必须被认为是无效的。
可以对停用的 Store 对象调用 connect 方法来获取它。
getMessage() 方法返回更详细的有关导致此异常的错误的信息。
This exception is thrown when a method is invoked on a Messaging object and the Store that owns that object has died due to some reason. This exception should be treated as a fatal error; in particular any messaging object belonging to that Store must be considered invalid.
The connect method may be invoked on the dead Store object to revive it.
The getMessage() method returns more detailed information about the error that caused this exception.
- Author:
- John Mani
- See Also:
- Serialized Form
Constructor Summary | |
---|---|
StoreClosedException(Store store)
Constructor |
|
StoreClosedException(Store store,
String message)
Constructor |
Method Summary | |
---|---|
Store |
getStore()
Returns the dead Store 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
StoreClosedException(Store store)
Constructor
store | 停用的 Store 对象 |
StoreClosedException
public StoreClosedException(Store store)
- Constructor
- Parameters:
store
- The dead Store object
public
StoreClosedException(Store store, String message)
Constructor
store | 停用的 Store 对象 |
message | 详细的错误消息 |
StoreClosedException
public StoreClosedException(Store store, String message)
- Constructor
- Parameters:
store
- The dead Store objectmessage
- The detailed error message
Method Detail |
---|
public Store
getStore()
返回停用的 Store 对象。
英文文档:
getStore
public Store getStore()
- Returns the dead Store object
|
|||||||||
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 : 未经我党受权你也可自由散发此文档。 如有任何错误请自行修正;若因此而造成任何损失请直接找人民主席,请勿与本人联系。谢谢!