Agent Client Protocol - v2.12.0
    Preparing search index...

    Class RequestError

    JSON-RPC error object.

    Represents an error that occurred during method execution, following the JSON-RPC 2.0 error object specification with optional additional data.

    See protocol docs: JSON-RPC Error Object

    Hierarchy

    • Error
      • RequestError
    Index
    • Parameters

      • code: number

        JSON-RPC error code.

      • message: string
      • Optionaldata: unknown

      Returns RequestError

    data?: unknown

    Additional JSON-RPC error data.

    code: number

    JSON-RPC error code.

    • Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text.

      Parameters

      • Optionaldata: unknown
      • OptionaladditionalMessage: string

      Returns RequestError

    • The JSON sent is not a valid Request object.

      Parameters

      • Optionaldata: unknown
      • OptionaladditionalMessage: string

      Returns RequestError

    • Invalid method parameter(s).

      Parameters

      • Optionaldata: unknown
      • OptionaladditionalMessage: string

      Returns RequestError

    • Execution of the request was aborted.

      Parameters

      • Optionaldata: unknown
      • OptionaladditionalMessage: string

      Returns RequestError

    • The session named by a session-scoped request does not exist or is not active on this connection.

      Produces a -32002 (Resource not found) error with data.sessionId set to the requested session ID.

      Parameters

      • sessionId: string

      Returns RequestError

    • No supported protocol version is at or below the requested version.

      Produces a -32022 error whose data lists the requested version and the supported versions.

      Parameters

      • requested: number
      • supported: readonly number[]

      Returns RequestError