NeoGraph 0.16.0
A C++20 Graph Agent Engine Library — LangGraph for C++
Loading...
Searching...
No Matches
neograph::acp::ACPClientError Class Reference

A JSON-RPC error the client answered to a request of the agent. More...

#include <server.h>

Inheritance diagram for neograph::acp::ACPClientError:
[legend]

Public Member Functions

 ACPClientError (std::string method, const neograph::json &error)
 error is the response's error object.
 
int code () const noexcept
 The JSON-RPC error code; -32603 when the client sent none.
 
const neograph::json & data () const noexcept
 The error's data; null when it had none.
 
const std::string & message () const noexcept
 The client's error message; empty when it sent none.
 
const std::string & method () const noexcept
 The method the agent called, such as "fs/read_text_file".
 

Detailed Description

A JSON-RPC error the client answered to a request of the agent.

ACPServer::call_client() and the ACPClient calls throw it for an error envelope, whatever the method: fs/*, terminal/*, session/request_permission or an extension. what() is "ACPServer::call_client: error response: " followed by the error object. A code that says the request itself cannot succeed makes it an ACPClientRefusal.

Definition at line 198 of file server.h.


The documentation for this class was generated from the following file: