MCPcopy Create free account
hub / github.com/LemonOSProject/LemonOS / EndpointException

Class EndpointException

LibLemon/include/lemon/ipc/endpoint.h:13–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11
12namespace Lemon{
13 class EndpointException : public std::exception{
14 public:
15 enum {
16 EndpointUnknownError,
17 EndpointInterfacePathResolutionError,
18 EndpointInvalidHandle,
19 EndpointNotConnected,
20 };
21 protected:
22 int error = 0;
23 static const char* const errorStrings[];
24 public:
25 EndpointException(int error){
26 this->error = error;
27 }
28
29 const char* what() const noexcept{
30 return errorStrings[error];
31 }
32 };
33
34 class Endpoint : public Waitable {
35 protected:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected