august-yale
    Preparing search index...

    Class NetworkError

    Network / transport-level failure.

    Thrown when a request did not get a clean answer from the server: TCP connect timeout, socket reset, DNS failure, headers/body timeout, malformed response, TLS proxy failure, etc. Distinct from InvalidAuth (server answered with 401) and from generic server errors (server answered with 4xx/5xx HTTP, see YaleApiError).

    Consumers can check err.code for the underlying transport code (e.g. ECONNRESET, UND_ERR_CONNECT_TIMEOUT). The original error is preserved on err.cause and err.originalError.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    Constructors

    Properties

    code?: string

    Underlying transport error code, when available.

    originalError?: Error