exceptionHelper method

CaptureException exceptionHelper(
  1. String method,
  2. int exceptionType,
  3. Object ex
)

Implementation

CaptureException exceptionHelper(
    String method, int exceptionType, Object ex) {
  String code = '0';
  if (ex is PlatformException) {
    code = ex.code;
  }
  final String exception =
      exceptionType > 0 ? 'Platform Exception' : 'Exception';
  logger?.log('iOS $method: $exception', code);
  return convertFromPlatformException(ex, method, exception);
}