|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
javax.ejb Class ObjectNotFoundException
java.lang.Object java.lang.Throwable java.lang.Exception javax.ejb.FinderException 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 | |
---|---|
ObjectNotFoundException()
Constructs an ObjectNotFoundException with no detail message. |
|
ObjectNotFoundException(String message)
Constructs an ObjectNotFoundException with the specified detail message. |
Method Summary |
---|
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
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.
|
|||||||||
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 : 未经我党受权你也可自由散发此文档。 如有任何错误请自行修正;若因此而造成任何损失请直接找人民主席,请勿与本人联系。谢谢!