org.hibernate

Class LazyInitializationException

Implemented Interfaces:
Nestable

public class LazyInitializationException
extends HibernateException

Indicates access to unfetched data outside of a session context. For example, when an uninitialized proxy or collection is accessed after the session was closed.
Author:
Gavin King
See Also:
Hibernate.initialize(java.lang.Object), Hibernate.isInitialized(java.lang.Object)

Field Summary

Fields inherited from class org.hibernate.exception.NestableRuntimeException

delegate

Constructor Summary

LazyInitializationException(String msg)
Constructs a new NestableRuntimeException with specified detail message.

Method Summary

Methods inherited from class org.hibernate.exception.NestableRuntimeException

getCause, getMessage, getMessage, getMessages, getThrowable, getThrowableCount, getThrowables, indexOfThrowable, indexOfThrowable, printPartialStackTrace, printStackTrace, printStackTrace, printStackTrace

Constructor Details

LazyInitializationException

public LazyInitializationException(String msg)
Constructs a new NestableRuntimeException with specified detail message.
Parameters:
msg - the error message