ObjectNotFoundException (Java EE 5)

Java EE API


javax.ejb Class ObjectNotFoundException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by javax.ejb.FinderException
              extended by javax.ejb.ObjectNotFoundException
All Implemented Interfaces:
Serializable

public class ObjectNotFoundException
extends FinderException

Extends: Throwable > Exception > FinderException

ObjectNotFoundException 异常由 finder 方法抛出,指示指定的 EJB 对象不存在。

只有当 finder 方法声明返回单个 EJB 对象时才使用此异常。如果 finder 方法返回 EJB 对象的集合,则不会抛出此异常,而应返回一个空集合。

英文文档:

The ObjectNotFoundException exception is thrown by a finder method to indicate that the specified EJB object does not exist.

Only the finder methods that are declared to return a single EJB object use this exception. This exception should not be thrown by finder methods that return a collection of EJB objects (they should return an empty collection instead).

See Also:
Serialized Form

Constructor Summary
 
Method Summary
 
Methods inherited from class java.lang.Throwable
 
Methods inherited from class java.lang.Object
 

Constructor Detail

public ObjectNotFoundException()
构造不带详细消息的 ObjectNotFoundException。
英文文档:

ObjectNotFoundException

public ObjectNotFoundException()
Constructs an ObjectNotFoundException with no detail message.


public ObjectNotFoundException(String message)
构造带指定详细消息的 ObjectNotFoundException。
英文文档:

ObjectNotFoundException

public ObjectNotFoundException(String message)
Constructs an ObjectNotFoundException with the specified detail message.



Submit a bug or feature

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

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

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