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

Method onError

examples/proto_server.cpp:38–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36 }
37
38 void onError(int error, const std::string& category, const std::string& message) override
39 {
40 std::cout << "Simple protocol session caught an error with code " << error << " and category '" << category << "': " << message << std::endl;
41 }
42
43 // Protocol handlers
44 void onReceive(const ::simple::DisconnectRequest& request) override { Disconnect(); }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected