Package org.hibernate
Class LazyInitializationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
jakarta.persistence.PersistenceException
org.hibernate.HibernateException
org.hibernate.LazyInitializationException
- All Implemented Interfaces:
Serializable
Indicates an attempt to access unfetched data outside the context
of an open stateful
Session
.
For example, this exception occurs when an uninitialized proxy or collection is accessed after the session was closed.
-
Constructor Summary
ConstructorDescriptionLazyInitializationException
(String message) Constructs aLazyInitializationException
using the given message. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
LazyInitializationException
Constructs aLazyInitializationException
using the given message.- Parameters:
message
- A message explaining the exception condition
-