rxjs / latest / api / index / interface / timeouterror.html

TimeoutError

interface stable operator

An error thrown by the timeout operator.

interface TimeoutError<T = unknown, M = unknown> extends Error {
  info: TimeoutInfo<T, M> | null
}

Description

Provided so users can use as a type and do quality comparisons. We recommend you do not subclass this or create instances of this class directly. If you have need of a error representing a timeout, you should create your own error class and use that.

Properties

Property Type Description
info TimeoutInfo<T, M> | null

The information provided to the error by the timeout operation that created the error. Will be null if used directly in non-RxJS code with an empty constructor. (Note that using this constructor directly is not recommended, you should create your own errors)

See Also

© 2015–2022 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/index/interface/TimeoutError