StepFailure constructor

StepFailure(
  1. dynamic e,
  2. dynamic s
)

Implementation

StepFailure(e, s) {
  if (e is Exception) {
    this.error = e;
  } else {
    this.error = Exception(e.toString());
  }
  this.trace = s;
}