|
NeoGraph 0.16.0
A C++20 Graph Agent Engine Library — LangGraph for C++
|
A JSON-RPC error the client answered to a request of the agent. More...
#include <server.h>
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". | |
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.