ContractError constructor

const ContractError(
  1. String what,
  2. List<ContractViolation> violations
)

Creates the error for what (for example response createMessage 201).

Implementation

const ContractError(this.what, this.violations);