errorBy method Null safety

  1. @protected
int errorBy(
  1. RunException exception
)

Returns error code by exception.

Implementation

@protected
int errorBy(RunException exception) {
  return error(exception.exitCode, message: exception.message);
}