MCPcopy Create free account
hub / github.com/chronoxor/CppServer / onError

Method onError

examples/proto_client.cpp:57–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55 }
56
57 void onError(int error, const std::string& category, const std::string& message) override
58 {
59 std::cout << "Simple protocol client caught an error with code " << error << " and category '" << category << "': " << message << std::endl;
60 }
61
62 // Protocol handlers
63 void onReceive(const ::simple::DisconnectRequest& request) override { Client::onReceive(request); std::cout << "Received: " << request << std::endl; DisconnectAsync(); }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected