identifyType method

  1. @override
String? identifyType(
  1. dynamic throwable
)
override

Implementation

@override
String? identifyType(dynamic throwable) {
  final runtimeType = throwable.runtimeType;
  if (_knownExceptionTypes.containsKey(runtimeType)) {
    return _knownExceptionTypes[runtimeType];
  }

  final identifiedType = _identifier.identifyType(throwable);

  if (identifiedType != null) {
    _knownExceptionTypes[runtimeType] = identifiedType;
  }

  return identifiedType;
}