ExecutionError constructor

const ExecutionError(
  1. ExecutionErrorCode code,
  2. String message, {
  3. Object? cause,
  4. String stdout = '',
  5. String stderr = '',
})

Creates an ExecutionError with a code and message.

stdout/stderr carry the captured partial output when the command was killed mid-run (timeout/cancel, gh-1053): the bounded return must deliver the evidence of WHERE the call stalled, not just the fact. Empty for every other failure class.

Implementation

const ExecutionError(
  this.code,
  this.message, {
  this.cause,
  this.stdout = '',
  this.stderr = '',
});