StepResult.failed constructor

StepResult.failed(
  1. String? errorMessage,
  2. StackTrace? stackTrace
)

Creates a failure result containing diagnostic context and stack trace details from the error.

Implementation

StepResult.failed(this.errorMessage, this.stackTrace)
  : status = StepStatus.failed;