convertWebExceptions<R> function

R convertWebExceptions<R>(
  1. R cb()
)

Will return a FirebaseException from a thrown web error. Any other errors will be propagated as normal.

Implementation

R convertWebExceptions<R>(R Function() cb) {
  return internals.guardWebExceptions(
    cb,
    plugin: 'firebase_analytics',
    codeParser: (code) => code.replaceFirst('analytics/', ''),
  );
}