Class IdInterfaceExceptions
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.springframework.data.mapping.MappingException
org.springframework.data.cassandra.core.mapping.IdInterfaceExceptions
- All Implemented Interfaces:
Serializable
Aggregator of multiple violations for convenience when verifying id interfaces. This allows the framework to
communicate all errors at once, rather than one at a time.
- Author:
- Matthew T. Adams, Mark Paluch
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionIdInterfaceExceptions
(Class<?> idInterfaceClass, Collection<MappingException> exceptions) Create a newIdInterfaceExceptions
for the givenidInterfaceClass
and exceptions. -
Method Summary
Modifier and TypeMethodDescriptionvoid
int
getCount()
Returns the number of exceptions aggregated in this exception.Returns a list of theIdInterfaceException
s aggregated within.Returns a list of theIdInterfaceException
messages aggregated within.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
IdInterfaceExceptions
Create a newIdInterfaceExceptions
for the givenidInterfaceClass
and exceptions.- Parameters:
idInterfaceClass
- must not be null.exceptions
- must not be null.- Since:
- 2.0
-
-
Method Details
-
add
-
getExceptions
Returns a list of theIdInterfaceException
s aggregated within. -
getMessages
Returns a list of theIdInterfaceException
messages aggregated within. -
getCount
public int getCount()Returns the number of exceptions aggregated in this exception. -
getMessage
- Overrides:
getMessage
in classThrowable
-
getIdInterfaceName
-