public class JSR303ViolationException extends AxonNonTransientException
Message has been refused due to a structural
 validation failure. Typically, resending the same message will result in the exact same exception.
 
 Provides a set of JSR303 ConstraintViolations that provide details about the exact failure of the message.
| Constructor and Description | 
|---|
| JSR303ViolationException(Set<jakarta.validation.ConstraintViolation<Object>> violations)Initializes an exception with the given  messageandviolations. | 
| Modifier and Type | Method and Description | 
|---|---|
| protected static String | convert(Set<jakarta.validation.ConstraintViolation<Object>> violations)Convert the violations to a human readable format, sorted by class and property e.g.:
 
   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
  | 
| Set<jakarta.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<jakarta.validation.ConstraintViolation<Object>> getViolations()
protected static String convert(Set<jakarta.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 exception was thrownCopyright © 2010–2025. All rights reserved.