StoreClosedException (Java EE 5)

Java EE API


javax.mail Class StoreClosedException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by javax.mail.MessagingException
              extended by javax.mail.StoreClosedException
All Implemented Interfaces:
Serializable

public class StoreClosedException
extends MessagingException

Extends: Throwable > Exception > 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
 
Method Summary
 Store
 
Methods inherited from class javax.mail.MessagingException
 
Methods inherited from class java.lang.Throwable
 
Methods inherited from class java.lang.Object
 

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 object
message - The detailed error message

Method Detail

public Store getStore()
返回停用的 Store 对象。
英文文档:

getStore

public Store getStore()
Returns the dead Store object



Submit a bug or feature

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

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

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