Module io.ebean.api
Package io.ebean

Class LazyInitialisationException

All Implemented Interfaces:
Serializable

public class LazyInitialisationException extends BeanAccessException
Thrown when trying to access a property that isn't loaded on an entity that is unmodifiable or has disabled lazy loading.

On a normal mutable entity accessing the property would invoke lazy loading. On a unmodifiable entity with lazy loading disabled, accessing an unloaded property throws this LazyInitialisationException instead.

See Also:
  • Constructor Details

    • LazyInitialisationException

      public LazyInitialisationException(String message)
      Create specifying the property that was being accessed.