01: //$Id: CallbackException.java 4242 2004-08-11 09:10:45Z oneovthafew $
02: package org.hibernate;
03:
04: /**
05: * Should be thrown by persistent objects from <tt>Lifecycle</tt>
06: * or <tt>Interceptor</tt> callbacks.
07: *
08: * @see Lifecycle
09: * @see Interceptor
10: * @author Gavin King
11: */
12:
13: public class CallbackException extends HibernateException {
14:
15: public CallbackException(Exception root) {
16: super ("An exception occurred in a callback", root);
17: }
18:
19: public CallbackException(String message) {
20: super (message);
21: }
22:
23: public CallbackException(String message, Exception e) {
24: super(message, e);
25: }
26:
27: }
|