01: //$Id: ObjectNotFoundException.java 9855 2006-05-02 18:55:45Z steve.ebersole@jboss.com $
02: package org.hibernate;
03:
04: import java.io.Serializable;
05:
06: /**
07: * Thrown when <tt>Session.load()</tt> fails to select a row with
08: * the given primary key (identifier value). This exception might not
09: * be thrown when <tt>load()</tt> is called, even if there was no
10: * row on the database, because <tt>load()</tt> returns a proxy if
11: * possible. Applications should use <tt>Session.get()</tt> to test if
12: * a row exists in the database.<br>
13: * <br>
14: * Like all Hibernate exceptions, this exception is considered
15: * unrecoverable.
16: *
17: * @author Gavin King
18: */
19: public class ObjectNotFoundException extends
20: UnresolvableObjectException {
21:
22: public ObjectNotFoundException(Serializable identifier, String clazz) {
23: super(identifier, clazz);
24: }
25: }
|