AjaxTimeoutError

interface stable

Thrown when an AJAX request times out. Not to be confused with TimeoutError.

interface AjaxTimeoutError extends AjaxError {

  // inherited from ajax/AjaxError
  xhr: XMLHttpRequest
  request: AjaxRequest
  status: number
  responseType: XMLHttpRequestResponseType
  response: any
}

Description

This is exported only because it is useful for checking to see if errors are an instanceof AjaxTimeoutError. DO NOT use the constructor to create an instance of this type.

See Also

© 2015–2021 Google, Inc., Netflix, Inc., Microsoft Corp. and contributors.
Code licensed under an Apache-2.0 License. Documentation licensed under CC BY 4.0.
https://rxjs.dev/api/ajax/AjaxTimeoutError