claudius-chat-widget
    Preparing search index...

    Class ChatApiError

    Error thrown by ChatApiClient when a chat request ultimately fails: either after exhausting retries, or immediately for a non-retryable status.

    Hierarchy

    • Error
      • ChatApiError
    Index

    Constructors

    Properties

    Constructors

    • Create a ChatApiError.

      Parameters

      • message: string

        Human-readable error message.

      • status: number

        HTTP status code, or 0 for network and timeout failures.

      • Optionalcode: string

        Optional machine-readable error code (e.g. "TIMEOUT", "NETWORK_ERROR").

      • OptionalretryAfter: number

        Seconds to wait before retrying, from the Retry-After header.

      Returns ChatApiError

    Properties

    code?: string

    Machine-readable error code, when available (e.g. "TIMEOUT").

    retryAfter?: number

    Seconds to wait before retrying, parsed from the Retry-After header.

    status: number

    HTTP status code, or 0 for network and timeout failures.