Class MappingInstantiationException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.springframework.data.mapping.model.MappingInstantiationException
All Implemented Interfaces:
Serializable

public class MappingInstantiationException extends RuntimeException
Exception being thrown in case an entity could not be instantiated in the process of a to-object-mapping.
Author:
Oliver Gierke, Jon Brisbin, Christoph Strobl, Mark Paluch
See Also:
  • Constructor Details

  • Method Details

    • getEntityType

      public Optional<Class<?>> getEntityType()
      Returns the type of the entity that was attempted to instantiate.
      Returns:
      the entityType
    • getConstructor

      @Deprecated public Optional<Constructor<?>> getConstructor()
      Deprecated.
      since 3.0, use getEntityCreator() instead.
      The constructor used during the instantiation attempt.
      Returns:
      the constructor
    • getEntityCreator

      public Optional<InstanceCreatorMetadata<?>> getEntityCreator()
      The entity creator used during the instantiation attempt.
      Returns:
      the entity creator
      Since:
      3.0
    • getConstructorArguments

      public List<Object> getConstructorArguments()
      The constructor arguments used to invoke the constructor.
      Returns:
      the constructorArguments