文件導航

類:APITimeoutError

完整響應未在超時時間內到達。是 APIConnectionError 的一種。

繼承自

建構函式

建構函式

new APITimeoutError(timeoutMs, options?): APITimeoutError;

參數

timeoutMs

number

options?

ErrorOptions

回傳值

APITimeoutError

重寫

APIConnectionError.constructor

屬性

timeoutMs

readonly timeoutMs: number;

配置的超時時間,單位為毫秒。