error property

DOMException? get error

When a request is completed, returns the error (a DOMException), or null if the request succeeded. Throws a "InvalidStateError" DOMException if the request is still pending.

MDN Reference

Implementation

_i3.DOMException? get error => _i4.getProperty(
      this,
      'error',
    );