ToolException.fromProcessResult constructor

ToolException.fromProcessResult(
  1. PanaProcessResult result
)

Implementation

factory ToolException.fromProcessResult(PanaProcessResult result) {
  final fullOutput = [
    result.exitCode.toString(),
    result.stdout.asString,
    result.stderr.asString,
  ].map((e) => e.trim()).join('\n<***>\n');
  return ToolException(fullOutput, result);
}