Go to the documentation of this file.
23 #ifndef SOCKETEXCEPTION_HH_
24 # define SOCKETEXCEPTION_HH_
26 #define HERE __FILE__, __LINE__
31 #define NEW_EXCEPTION(Name) \
32 class Name : public Exception \
35 Name(const std::string& desc, const char * file, int line) : \
36 Exception(desc, file, line) \
38 Name() : Exception() {} \
39 Name(const char *file, int line) : Exception(file, line) {} \
58 Exception(
const std::string& err,
const char* file,
int line) :
61 _error =
"Exception: " + err;
64 void print(std::ostream& stream)
const;