@bates-solutions/squareup API Reference - v3.2.0
    Preparing search index...

    Class SquareNetworkError

    The request never got an HTTP response: a connection failure (DNS, reset, fetch failed) or a client-side timeout. Square may or may not have processed the request. statusCode is always undefined.

    cause holds the SDK error. It never contains the request, so secrets such as an OAuth client_secret are not exposed.

    Hierarchy (View Summary)

    Index
    code: "NETWORK_ERROR" | "TIMEOUT"

    Normalized error code. Each provider defines its own union.

    details?: unknown

    The raw error body or other context, if any.

    statusCode?: number

    HTTP status of the response that caused the error, if any.

    • Makes value instanceof PaymentsError true for an error from any copy of this package, not only this one. It looks for a brand that every copy puts on PaymentsError.prototype, so the prototype itself is not counted as an instance. On a subclass, such as SquareError, it is the usual prototype-chain check.

      It returns a plain boolean rather than a type predicate, so TypeScript keeps narrowing instanceof SquareError to SquareError.

      Parameters

      • value: unknown

      Returns boolean