onConstraintViolations

public static InvalidEventException onConstraintViolations(EventMessage eventMsg, Iterable<ConstraintViolation> violations)

Creates an exception instance for a event message which has fields that violate validation constraint(s).

Parameters

eventMsg

the invalid event message

violations

the constraint violations for the event message