on Constraint Violations
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
event Msg
the invalid event message
violations
the constraint violations for the event message