exceptionMessage static method

String exceptionMessage(
  1. Exception e
)

Implementation

static String exceptionMessage(Exception e) {
  switch (e) {
    case ProcessException _:
      return '$commandNotFound: [${e.errorCode}] ${e.message}';
    default:
      return commandNotFound;
  }
}