JSR303ViolationException
which moved
to jakarta.@Deprecated 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 ConstraintViolation
s that provide details about the exact failure of the message.
Constructor and Description |
---|
JSR303ViolationException(Set<javax.validation.ConstraintViolation<Object>> violations)
Deprecated.
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)
Deprecated.
Convert the violations to a human readable format, sorted by class and property e.g.:
|
Set<javax.validation.ConstraintViolation<Object>> |
getViolations()
Deprecated.
Returns the violations that were detected when this exception was thrown.
|
isCauseOf
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public 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 exception was thrownCopyright © 2010–2024. All rights reserved.