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
ConstructorDescriptionMappingInstantiationException
(List<Object> arguments, Exception cause) Creates a newMappingInstantiationException
for the given constructor arguments and the causing exception.MappingInstantiationException
(PersistentEntity<?, ?> entity, List<Object> arguments, Exception cause) Creates a newMappingInstantiationException
for 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 java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
MappingInstantiationException
public MappingInstantiationException(PersistentEntity<?, ?> entity, List<Object> arguments, Exception cause) Creates a newMappingInstantiationException
for the givenPersistentEntity
, constructor arguments and the causing exception.- Parameters:
entity
-arguments
-cause
-
-
MappingInstantiationException
Creates a newMappingInstantiationException
for the given constructor arguments and the causing exception.- Parameters:
arguments
-cause
-
-
-
Method Details
-
getEntityType
Returns the type of the entity that was attempted to instantiate.- Returns:
- the entityType
-
getEntityCreator
The entity creator used during the instantiation attempt.- Returns:
- the entity creator
- Since:
- 3.0
-
getConstructorArguments
The constructor arguments used to invoke the constructor.- Returns:
- the constructorArguments
-