public class VerifierMappingExceptions
extends org.springframework.data.mapping.model.MappingException
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.Constructor and Description |
---|
VerifierMappingExceptions(CassandraPersistentEntity<?> entity,
Collection<org.springframework.data.mapping.model.MappingException> exceptions)
Creates a new
VerifierMappingExceptions for the given entity and message. |
VerifierMappingExceptions(CassandraPersistentEntity<?> entity,
String message)
Creates a new
VerifierMappingExceptions for the given entity and message. |
Modifier and Type | Method and Description |
---|---|
void |
add(org.springframework.data.mapping.model.MappingException mappingException)
Deprecated.
Exceptions should be immutable so this method is subject to be removed in future versions
|
int |
getCount()
Returns the number of errors that have been added to this Exception Class.
|
Collection<org.springframework.data.mapping.model.MappingException> |
getMappingExceptions()
Returns a list of the MappingExceptions aggregated within.
|
String |
getMessage() |
Collection<String> |
getMessages()
Returns a list of the MappingException messages aggregated within.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public VerifierMappingExceptions(CassandraPersistentEntity<?> entity, Collection<org.springframework.data.mapping.model.MappingException> exceptions)
VerifierMappingExceptions
for the given entity
and message.entity
- must not be null.exceptions
- must not be null.public VerifierMappingExceptions(CassandraPersistentEntity<?> entity, String message)
VerifierMappingExceptions
for the given entity
and message.entity
- must not be null.message
- @Deprecated public void add(org.springframework.data.mapping.model.MappingException mappingException)
mappingException
- must not be null.public Collection<org.springframework.data.mapping.model.MappingException> getMappingExceptions()
public Collection<String> getMessages()
public int getCount()
public String getMessage()
getMessage
in class Throwable
Copyright © 2011–2017 Pivotal Software, Inc.. All rights reserved.