Hermolaos.Error exception (Hermolaos v0.3.0)
View SourceException struct for MCP/JSON-RPC errors.
This exception can be raised when an MCP operation fails with an error response from the server or a client-side error occurs.
Examples
try do
result = Hermolaos.call_tool(client, "unknown_tool", %{})
rescue
e in Hermolaos.Error ->
IO.puts("Tool call failed: #{e.message}")
IO.puts("Error code: #{e.code}")
end
Summary
Functions
Creates a new Hermolaos.Error from components.