public class JSR303ViolationException extends AxonNonTransientException
| Constructor and Description |
|---|
JSR303ViolationException(Set<javax.validation.ConstraintViolation<Object>> violations)
Initializes an exception with the given
message and violations. |
| Modifier and Type | Method and Description |
|---|---|
protected static String |
convert(Set<javax.validation.ConstraintViolation<Object>> violations)
Convert the violations to a human readable format, sorted by class and property e.g.
|
Set<javax.validation.ConstraintViolation<Object>> |
getViolations()
Returns the violations that were detected when this exception was thrown.
|
isCauseOfaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic Set<javax.validation.ConstraintViolation<Object>> getViolations()
protected static String convert(Set<javax.validation.ConstraintViolation<Object>> violations)
property ab in class my.some.Klass may not be null property cd in class my.some.OtherClass length must be between 0 and 3 property cd in class my.some.OtherClass must match "ab.*"
property notNull in class my.some.TheClass may not be null
violations - set of violations that were detected when the execption was thrownCopyright © 2010–2018. All rights reserved.