ProcessPackageException.fromProcessException constructor Null safety

ProcessPackageException.fromProcessException(
  1. ProcessException exception,
  2. {String? workingDirectory}
)

Creates a ProcessPackageException from a ProcessException.

Implementation

factory ProcessPackageException.fromProcessException(
  ProcessException exception, {
  String? workingDirectory,
}) {
  return ProcessPackageException(
    exception.executable,
    arguments: exception.arguments,
    message: exception.message,
    errorCode: exception.errorCode,
    workingDirectory: workingDirectory,
  );
}