ContractError class final

Thrown when the fake itself would send something that breaks the contract: a programming error of the fake, never of the client under test.

Implemented types

Constructors

ContractError(String what, List<ContractViolation> violations)
Creates the error for what (for example response createMessage 201).
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
violations → List<ContractViolation>
What is wrong.
final
what → String
The checked message.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
inherited