Defjs
Core

ERR_TIMEOUT

Shared Error sentinel that marks a request as timed out.

@defjs/core · Constant

Signature

const ERR_TIMEOUT: Error;

Its message is Request timed out. Shared cause and message value for timeouts. createNetworkFault maps it, and any error named TimeoutError, to NET_TIMEOUT. An HTTP interceptor that throws it makes the call resolve with a NET_TIMEOUT fault. SSE and WebSocket interceptors that throw it are reported as EXT_INTERCEPTOR_FAILED.

The sentinel carries a non-enumerable Symbol.for('defjs.cause.timeout') brand. isTimeoutCause recognizes this sentinel from any Core copy without comparing object identity. Classification is independent of unrelated earlier executions.

Edit this page on GitHub
Released under the MIT License. · Copyright © 2026 MunMunMiao