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