![]() |
boost::taar::mcp::default_tool_error_handler — Default tool error mapping, by code only.
// In header: <boost/taar/mcp/endpoint.hpp> std::optional< std::string > default_tool_error_handler(taar::failure const & f);
Codes of Taar's category (argument errors), the JSON-RPC category and the MCP category (error) stay protocol errors (nullopt). Anything else, including boost::taar::error::unknown_exception (the tool's own exception), becomes an isError: true result whose text is boost::taar::failure::text (the exception's what()).