Class VerifierMappingExceptions
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.springframework.data.mapping.MappingException
org.springframework.data.cassandra.core.mapping.VerifierMappingExceptions
- All Implemented Interfaces:
Serializable
Aggregator of multiple
MappingException
for convenience when verifying persistent entities. This allows the
framework to communicate all verification errors to the user of the framework, rather than one at a time.- Author:
- David Webb, Mark Paluch
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionVerifierMappingExceptions
(CassandraPersistentEntity<?> entity, String message) Create a newVerifierMappingExceptions
for the givenentity
and message.VerifierMappingExceptions
(CassandraPersistentEntity<?> entity, Collection<MappingException> exceptions) Create a newVerifierMappingExceptions
for the givenentity
and message. -
Method Summary
Modifier and TypeMethodDescriptionReturns a list of theMappingException
s aggregated within.Returns a list of theMappingException
messages aggregated within.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
VerifierMappingExceptions
public VerifierMappingExceptions(CassandraPersistentEntity<?> entity, Collection<MappingException> exceptions) Create a newVerifierMappingExceptions
for the givenentity
and message.- Parameters:
entity
- must not be null.exceptions
- must not be null.- Since:
- 1.5
-
VerifierMappingExceptions
Create a newVerifierMappingExceptions
for the givenentity
and message.- Parameters:
entity
- must not be null.message
-
-
-
Method Details
-
getMappingExceptions
Returns a list of theMappingException
s aggregated within.- Returns:
- collection of
MappingException
.
-
getMessages
Returns a list of theMappingException
messages aggregated within.- Returns:
- collection of messages.
-
getMessage
- Overrides:
getMessage
in classThrowable
-