handleProjectException static method

void handleProjectException(
  1. ProjectCommandException exception, {
  2. bool isExit = true,
})

Handles project command exceptions.

Parameters:

  • exception: ProjectCommandException to handle
  • isExit: Whether to exit the process (default: true)

Implementation

static void handleProjectException(
  ProjectCommandException exception, {
  bool isExit = true,
}) {
  StatusHelper.failed(
    exception.message,
    suggestion: exception.suggestion,
    examples: exception.examples,
    isExit: isExit,
  );
}