exitWithException method

Future<void> exitWithException(
  1. Object error, [
  2. StackTrace? st
])
inherited

Terminates the CLI app with exception.

Implementation

Future<void> exitWithException(
  final Object error, [
  final StackTrace? st,
]) async {
  hasErrors = true;
  await _terminate(error: error, stacktrace: st);
}