catchError static method

void catchError(
  1. Object ex
)

Catch and explicitly handle the error.

Implementation

static void catchError(Object ex) {
  if (ex is! Exception) {
    ex = Exception(ex.toString());
  }
  _appState?.catchError(ex);
}