Skip to main content
Glama

CodeGraphContext

exceptions.cpp391 B
// Demonstrates exception handling in C++ #include <iostream> #include <stdexcept> void exceptionDemo(int x) { try { if (x == 0) throw std::invalid_argument("zero"); std::cout << 10 / x << std::endl; } catch (const std::invalid_argument& e) { std::cout << e.what() << std::endl; } catch (...) { std::cout << "Unknown error" << std::endl; } }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Shashankss1205/CodeGraphContext'

If you have feedback or need assistance with the MCP directory API, please join our Discord server