catchFormatExecption<ClassWhereItHappened> static method

bool catchFormatExecption<ClassWhereItHappened>(
  1. dynamic e, {
  2. StackTrace? s,
})

Implementation

static bool catchFormatExecption<ClassWhereItHappened>(dynamic e, {StackTrace? s}) {
  if (e! is FormatException) {
    return false;
  }
  if (kDebugMode) {
    print('catchFormatExecption of ${ClassWhereItHappened.toString()}:  e $e, $s');
  }
  //TODO
  /* externalize sentry
  Sentry.captureException(e, stackTrace: s, withScope: (p0) {
    p0.setTag('catchFormatExecption of ${ClassWhereItHappened.toString()}', 'error: $e, trace: $s');
  });
  */

  return true;
}