Error thrown when a request to the LLM Gateway fails.

Hierarchy

  • Error
    • LlmGatewayError

Constructors

  • Create a new LlmGatewayError.

    Parameters

    • message: string

      The human-readable error message.

    • Optionalstatus: number

      The HTTP status code of the failed request.

    • OptionalrequestId: string

      The server-generated request id, for correlating with support.

    • Optionalerrors: string[]

      Validation detail strings, present on invalid-request errors.

    Returns LlmGatewayError

Properties

errors?: string[]

Validation detail strings, present on invalid-request errors.

message: string
name: string = "LlmGatewayError"
requestId?: string

The server-generated request id, for correlating with support.

stack?: string
status?: number

The HTTP status code of the failed request.

prepareStackTrace?: ((err: Error, stackTraces: CallSite[]) => any)

Optional override for formatting stack traces

stackTraceLimit: number

Methods

  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • OptionalconstructorOpt: Function

    Returns void