1 package org.hibernate; 3 4 import java.io.Serializable ; 5 6 19 public class ObjectNotFoundException extends UnresolvableObjectException { 20 21 public ObjectNotFoundException(Serializable identifier, String clazz) { 22 super(identifier, clazz); 23 } 24 25 public static void throwIfNull(Object o, Serializable id, String clazz) 26 throws ObjectNotFoundException { 27 if (o==null) throw new ObjectNotFoundException(id, clazz); 28 } 29 30 } 31 32 33 34 35 36 37 38 | Popular Tags |