ProcessPackageException constructor Null safety

const ProcessPackageException(
  1. String executable,
  2. {List<String> arguments = const <String>[],
  3. String message = "",
  4. int errorCode = 0,
  5. String? workingDirectory}
)

Create a const ProcessPackageException.

The executable should be the name of the executable to be run.

The optional workingDirectory is the directory where the command execution is attempted.

The optional arguments is a list of the arguments to given to the executable, already separated.

The optional message is an additional message to be included in the exception string when printed.

The optional errorCode is the error code received when the executable was run. Zero means it ran successfully, or that no error code was available.

See ProcessException for more information.

Implementation

const ProcessPackageException(
  String executable, {
  List<String> arguments = const <String>[],
  String message = "",
  int errorCode = 0,
  this.workingDirectory,
}) : super(executable, arguments, message, errorCode);