public final class ValidationException extends RuntimeException
ConfigException.ValidationProblems found with the
configured message and not the first problem.
This exception should not be thrown if a single field is set to an invalid value. Instead an exception is thrown by the setter method when given that invalid value.
| Constructor and Description |
|---|
ValidationException(Class<? extends EMessageObject> mc,
List<String> problems)
Creates a new instance of
ValidationException
for the given message class and validation problems. |
| Modifier and Type | Method and Description |
|---|---|
Class<? extends EMessageObject> |
messageClass()
Returns the message class experiencing the validation
problems.
|
Iterable<String> |
problems()
Returns the validation problems as a read-only list.
|
String |
toString()
Returns text displaying the message validation problems.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTracepublic ValidationException(Class<? extends EMessageObject> mc, List<String> problems)
ValidationException
for the given message class and validation problems.mc - target message object class.problems - discovered message class problems.public String toString()
public Class<? extends EMessageObject> messageClass()
Copyright © 2019. All rights reserved.