public class MappingInstantiationException extends RuntimeException
Constructor and Description |
---|
MappingInstantiationException(List<Object> arguments,
Exception cause)
Creates a new
MappingInstantiationException for the given constructor arguments and the causing exception. |
MappingInstantiationException(PersistentEntity<?,?> entity,
List<Object> arguments,
Exception cause)
Creates a new
MappingInstantiationException for the given PersistentEntity , constructor arguments
and the causing exception. |
Modifier and Type | Method and Description |
---|---|
Optional<Constructor<?>> |
getConstructor()
Deprecated.
since 3.0, use
getEntityCreator() instead. |
List<Object> |
getConstructorArguments()
The constructor arguments used to invoke the constructor.
|
Optional<InstanceCreatorMetadata<?>> |
getEntityCreator()
The entity creator used during the instantiation attempt.
|
Optional<Class<?>> |
getEntityType()
Returns the type of the entity that was attempted to instantiate.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public MappingInstantiationException(PersistentEntity<?,?> entity, List<Object> arguments, Exception cause)
MappingInstantiationException
for the given PersistentEntity
, constructor arguments
and the causing exception.entity
- arguments
- cause
- public MappingInstantiationException(List<Object> arguments, Exception cause)
MappingInstantiationException
for the given constructor arguments and the causing exception.arguments
- cause
- public Optional<Class<?>> getEntityType()
@Deprecated public Optional<Constructor<?>> getConstructor()
getEntityCreator()
instead.public Optional<InstanceCreatorMetadata<?>> getEntityCreator()
Copyright © 2011–2023 Pivotal Software, Inc.. All rights reserved.