@idkollen/client
    Preparing search index...

    Class IdkollenError

    Errors returned by all client operations.

    Hierarchy

    • Error
      • IdkollenError
    Index

    Constructors

    Properties

    Methods

    Constructors

    • Parameters

      • code: "http" | "api" | "poll_timeout" | "json"

        Discriminant for the error kind: "http" for network failures, "api" for non-2xx responses, "poll_timeout" when a waitFor* call exceeds its timeout, and "json" for unexpected response shapes.

      • status: number

        HTTP status code for "api" errors; 0 for all other kinds.

      • message: string

      Returns IdkollenError

    Properties

    cause?: unknown
    code: "http" | "api" | "poll_timeout" | "json"

    Discriminant for the error kind: "http" for network failures, "api" for non-2xx responses, "poll_timeout" when a waitFor* call exceeds its timeout, and "json" for unexpected response shapes.

    message: string
    name: string
    stack?: string
    status: number

    HTTP status code for "api" errors; 0 for all other kinds.

    Methods

    • Indicates whether the argument provided is a built-in Error instance or not.

      Parameters

      • error: unknown

      Returns error is Error