01: //$Id: LazyInitializationException.java 4458 2004-08-29 09:59:17Z oneovthafew $
02: package org.hibernate;
03:
04: import org.apache.commons.logging.LogFactory;
05:
06: /**
07: * Indicates access to unfetched data outside of a session context.
08: * For example, when an uninitialized proxy or collection is accessed
09: * after the session was closed.
10: *
11: * @see Hibernate#initialize(java.lang.Object)
12: * @see Hibernate#isInitialized(java.lang.Object)
13: * @author Gavin King
14: */
15: public class LazyInitializationException extends HibernateException {
16:
17: public LazyInitializationException(String msg) {
18: super (msg);
19: LogFactory.getLog(LazyInitializationException.class).error(msg,
20: this);
21: }
22:
23: }
|