ContractViolationError constructor

ContractViolationError({
  1. required ViolationKind kind,
  2. required String message,
})

Creates an error for a failed kind with the specified message.