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

      public Optional<Constructor<?>> getConstructor()
      The constructor used during the instantiation attempt.
      Returns:
      the constructor
    • getConstructorArguments

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