ExecutionError constructor
const
ExecutionError(
- ExecutionErrorCode code,
- String message, {
- Object? cause,
- String stdout = '',
- 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 = '',
});