* Signals a problem with the execution of a socket call. */
| 32 | * Signals a problem with the execution of a socket call. |
| 33 | */ |
| 34 | class SocketException : public exception { |
| 35 | public: |
| 36 | /** |
| 37 | * Construct a SocketException with a explanatory message. |
| 38 | * @param message explanatory message |
| 39 | * @param incSysMsg true if system message (from strerror(errno)) |
| 40 | * should be postfixed to the user provided message |
| 41 | */ |
| 42 | SocketException(const string &message, bool inclSysMsg = false) throw(); |
| 43 | |
| 44 | /** |
| 45 | * Provided just to guarantee that no exceptions are thrown. |
| 46 | */ |
| 47 | ~SocketException() throw(); |
| 48 | |
| 49 | /** |
| 50 | * Get the exception message |
| 51 | * @return exception message |
| 52 | */ |
| 53 | const char *what() const throw(); |
| 54 | |
| 55 | private: |
| 56 | string userMessage; // Exception message |
| 57 | }; |
| 58 | |
| 59 | /** |
| 60 | * Base class representing basic communication endpoint |
no outgoing calls
no test coverage detected