Failure constructor

Failure(
  1. String methodName,
  2. String details
)

Constructor requiring all fields during initialization.

Implementation

Failure(this.methodName, this.details);