Skip to content

API ReferenceErrorsClass

ReadTimeoutError

Error thrown when an SDK read exceeds its whole-operation deadline.

Extends

Constructors

Constructor

new ReadTimeoutError(timeoutMillis, cause?): ReadTimeoutError;

Parameters

ParameterType
timeoutMillisnumber
cause?unknown

Returns

ReadTimeoutError

Overrides

ProviderConnectionError.constructor

Properties

timeoutMillis

readonly timeoutMillis: number;

Methods

walk()

walk<T>(errorType): T | undefined;

Checks if the provided ErrorType is in the error hierarchy for the current error.

Type Parameters

Type ParameterDescription
T extends ErrorThe type of the error being searched for.

Parameters

ParameterTypeDescription
errorType(…args) => TThe error type to find.

Returns

T | undefined

The error, if it is found in the hierarchy, otherwise undefined.

Inherited from

ProviderConnectionError.walk