软讯网络 > 编程语言 > Java > javax.ejb.ObjectNotFoundException翻译
【标 题】:javax.ejb.ObjectNotFoundException翻译
【关键字】:
javax.ejb.ObjectNotFoundException
【来 源】:http://blog.csdn.net/wocongdongfanglai/archive/2005/11/18/532161.aspx
javax.ejb.ObjectNotFoundException翻译
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
The ObjectNotFoundException exception is thrown by a finder method to indicate that the specified EJB object does not exist. ObjectNotFoundException异常由finder方法抛出,表示指定的EJB对象不存在。
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). 只有当finder方法声明返回单个EJB对象时才使用该异常。如果finder方法 返回EJB对象的集合,则不会抛出该异常,而是返回一个空的集合。
- See Also:
- Serialized Form
| Constructor Summary |
ObjectNotFoundException() Constructs an ObjectNotFoundException with no detail message. 构建一个不含详细信息的ObjectNotFoundException。 |
ObjectNotFoundException(String message) Constructs an ObjectNotFoundException with the specified detail message. 构建一个指定详细信息的ObjectNotFoundException。 |
| Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
ObjectNotFoundException
public ObjectNotFoundException()
- Constructs an ObjectNotFoundException with no detail message. 构建一个不含详细信息的ObjectNotFoundException。
ObjectNotFoundException
public ObjectNotFoundException(String message)
- Constructs an ObjectNotFoundException with the specified detail message. 构建一个指定详细信息的ObjectNotFoundException。
Submit a bug or feature Copyright 2003 Sun Microsystems, Inc. All rights reserved.
【相关文章】
没有相关文章