| 11 | |
| 12 | namespace 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: |
nothing calls this directly
no outgoing calls
no test coverage detected