Socket: Renamed all protocol classes and files to end in SocketProtocol
[senf.git] / Utils / Exception.cc
index 5e69277..28073e6 100644 (file)
@@ -44,6 +44,17 @@ prefix_ char const * senf::Exception::what()
     return message_.c_str();
 }
 
+///////////////////////////////////////////////////////////////////////////
+// senf::SystemException
+
+prefix_ void senf::SystemException::init(std::string const & where, int code)
+{
+    code_ = code;
+    if (! where.empty())
+        (*this) << where << ": ";
+    (*this) << "(" << code << ") " << description();
+}
+
 ///////////////////////////////cc.e////////////////////////////////////////
 #undef prefix_