1 16 17 package org.springframework.orm.hibernate; 18 19 import net.sf.hibernate.UnresolvableObjectException; 20 import net.sf.hibernate.WrongClassException; 21 22 import org.springframework.orm.ObjectRetrievalFailureException; 23 24 32 public class HibernateObjectRetrievalFailureException extends ObjectRetrievalFailureException { 33 34 public HibernateObjectRetrievalFailureException(UnresolvableObjectException ex) { 35 super(ex.getPersistentClass(), ex.getIdentifier(), ex.getMessage(), ex); 36 } 37 38 public HibernateObjectRetrievalFailureException(WrongClassException ex) { 39 super(ex.getPersistentClass(), ex.getIdentifier(), ex.getMessage(), ex); 40 } 41 42 } 43 | Popular Tags |