public class VerificationFailureSet extends Object implements Iterable<VerificationFailure>, Dumpable, Cloneable
| Modifier and Type | Field and Description |
|---|---|
static VerificationFailureSet |
NULL_SET |
| Constructor and Description |
|---|
VerificationFailureSet()
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
VerificationFailureSet |
add(Object source,
String errorKey,
String defaultErrorMessage,
Object... details)
Add a verification failure to this set
argument metaData
Schema, entity, field, or action with error
argument errorKey
error message key
argument defaultErrorMessage
Message to display if message key is not found
argument details
Message error parameters
|
VerificationFailureSet |
add(Throwable e,
Object source,
String errorKey,
String defaultErrorMessage,
Object... details)
Add a verification failure to this set
argument metaData
Schema, entity, field, or action with error
argument errorKey
error message key
argument defaultErrorMessage
Message to display if message key is not found
argument details
Message error parameters
|
VerificationFailureSet |
add(VerificationException failure)
Add verification failures from the exception to this set
|
VerificationFailureSet |
add(VerificationFailure failure)
Add verification failure to this set
argument failure
VerificationFailure to add
|
VerificationFailureSet |
add(VerificationRuntimeException failure)
Add verification failures from the exception to this set
|
VerificationFailureSet |
addAll(VerificationFailureSet set)
Add verification failures from the set to this set
|
void |
assertNoFailures()
Throws a VerificationException if this verification set contains any
errors.
|
void |
clear()
Remove all failures from the failure set
|
VerificationFailureSet |
clone() |
void |
dump(Dumper dumper)
Dump out the contents using the given indentation.
|
static VerificationFailureSet |
get(VerificationFailureSet set)
Return the VerificationFailureSet if it is not null, or create a new one
if it is.
|
boolean |
hasVerificationFailures()
Does this verification set contain any verification failures?
|
Iterator<VerificationFailure> |
iterator() |
int |
size()
Number of verification failures in this set
|
void |
throwRuntimeException()
Throws a VerificationRuntimeException if this verification set contains
any errors.
|
String |
toString() |
void |
writeJson(JsonWriter writer) |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic static final VerificationFailureSet NULL_SET
public VerificationFailureSet clone()
public void clear()
public VerificationFailureSet add(Object source, String errorKey, String defaultErrorMessage, Object... details)
public VerificationFailureSet add(Throwable e, Object source, String errorKey, String defaultErrorMessage, Object... details)
public VerificationFailureSet add(VerificationFailure failure)
public VerificationFailureSet add(VerificationException failure)
public VerificationFailureSet add(VerificationRuntimeException failure)
public VerificationFailureSet addAll(VerificationFailureSet set)
public Iterator<VerificationFailure> iterator()
iterator in interface Iterable<VerificationFailure>public void assertNoFailures()
throws VerificationException
VerificationExceptionpublic void throwRuntimeException()
VerificationRuntimeExceptionpublic int size()
public boolean hasVerificationFailures()
public static final VerificationFailureSet get(VerificationFailureSet set)
public void dump(Dumper dumper)
Dumpablepublic void writeJson(JsonWriter writer) throws IOException
IOExceptionCopyright © 2015. All Rights Reserved.