public class VerifierMappingExceptions extends 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<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(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<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<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(MappingException mappingException)
mappingException
- must not be null.public Collection<MappingException> getMappingExceptions()
public Collection<String> getMessages()
public int getCount()
public String getMessage()
getMessage
in class Throwable
Copyright © 2011-2015–2017 Pivotal Software, Inc.. All rights reserved.