convertFirebaseFunctionsException function

FirebaseFunctionsException convertFirebaseFunctionsException(
  1. FirebaseFunctionsException exception, [
  2. StackTrace? stackTrace
])

Given a dart error, a FirebaseFunctionsException is returned.

Implementation

FirebaseFunctionsException convertFirebaseFunctionsException(
    functions_dart.FirebaseFunctionsException exception,
    [StackTrace? stackTrace]) {
  return FirebaseFunctionsException(
    code: exception.code,
    message: exception.message!,
    stackTrace: stackTrace,
    details: exception.details,
  );
}