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
public classLazyInitializationExceptionextendsHibernateException
Indicates an attempt to access unfetched data outside the context of an open statefulSession.For example, this exception occurs when an uninitialized proxy or collection is accessed after the session was closed.
Constructor Summary
Constructors Constructor Description LazyInitializationException(String message)Constructs aLazyInitializationExceptionusing 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 Detail
LazyInitializationException
public LazyInitializationException(String message)
Constructs aLazyInitializationExceptionusing the given message.- Parameters:
message- A message explaining the exception condition