wrapIfUnsupportedType method

dynamic wrapIfUnsupportedType(
  1. dynamic throwable
)

Implementation

dynamic wrapIfUnsupportedType(dynamic throwable) {
  if (_unsupportedTypes.contains(throwable.runtimeType)) {
    throwable = _UnsupportedExceptionWrapper(Exception(throwable));
    _unsupportedThrowables.add(throwable);
  }
  return _unsupportedThrowables.lookup(throwable) ?? throwable;
}