of

public static ViolationText of(ConstraintViolation violation)

Creates a new instance of the text for the passed violation.