Package org.hibernate
Class LazyInitializationException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- javax.persistence.PersistenceException
-
- org.hibernate.HibernateException
-
- org.hibernate.LazyInitializationException
-
- All Implemented Interfaces:
Serializable
public class LazyInitializationException extends HibernateException
Indicates an attempt to access not-yet-fetched data outside of a session context. For example, when an uninitialized proxy or collection is accessed after the session was closed.
-
-
Constructor Summary
Constructors Constructor Description LazyInitializationException(String message)
Constructs a LazyInitializationException 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 Detail
-
LazyInitializationException
public LazyInitializationException(String message)
Constructs a LazyInitializationException using the given message.- Parameters:
message
- A message explaining the exception condition
-
-