stopResourceWithError method

void stopResourceWithError(
  1. String key,
  2. Exception error, [
  3. Map<String, Object?> attributes = const {}
])

Notifies that the Resource identified by key stopped being loaded with an Exception specified by error. You can optionally supply custom attributes to attach to this Resource.

Implementation

void stopResourceWithError(String key, Exception error,
    [Map<String, Object?> attributes = const {}]) {
  wrap('rum.stopResourceWithError', logger, attributes, () {
    return _platform.stopResourceWithError(key, error, attributes);
  });
}