Class MappingInstantiationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.springframework.data.mapping.model.MappingInstantiationException
- All Implemented Interfaces:
Serializable
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 Summary
ConstructorsConstructorDescriptionMappingInstantiationException(List<Object> arguments, Exception cause) Creates a newMappingInstantiationExceptionfor the given constructor arguments and the causing exception.MappingInstantiationException(@Nullable PersistentEntity<?, ?> entity, List<Object> arguments, Exception cause) Creates a newMappingInstantiationExceptionfor the givenPersistentEntity, constructor arguments and the causing exception. -
Method Summary
Modifier and TypeMethodDescriptionThe constructor arguments used to invoke the constructor.The entity creator used during the instantiation attempt.Returns the type of the entity that was attempted to instantiate.Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
MappingInstantiationException
public MappingInstantiationException(@Nullable PersistentEntity<?, ?> entity, List<Object> arguments, Exception cause) Creates a newMappingInstantiationExceptionfor the givenPersistentEntity, constructor arguments and the causing exception.- Parameters:
entity-arguments-cause-
-
MappingInstantiationException
Creates a newMappingInstantiationExceptionfor the given constructor arguments and the causing exception.- Parameters:
arguments-cause-
-
-
Method Details
-
getEntityType
-
getEntityCreator
The entity creator used during the instantiation attempt.- Returns:
- the entity creator
- Since:
- 3.0
-
getConstructorArguments
-