Source code: org/hibernate/LazyInitializationException.java
1 //$Id: LazyInitializationException.java,v 1.2 2004/08/29 09:59:15 oneovthafew Exp $
2 package org.hibernate;
3
4 import org.apache.commons.logging.LogFactory;
5
6 /**
7 * Indicates access to unfetched data outside of a session context.
8 * For example, when an uninitialized proxy or collection is accessed
9 * 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, this);
20 }
21
22 }
23
24
25
26
27
28