Utils: Removed ErrnoException and implemented generic Exception base-class
[senf.git] / Socket / SocketProtocol.cc
index e252603..672f21f 100644 (file)
 //#include "SocketProtocol.mpp"
 #define prefix_
 ///////////////////////////////cc.p////////////////////////////////////////
+
 prefix_ void senf::SocketProtocol::close()
     const
 {
     if (::shutdown(body().fd(),SHUT_RDWR) < 0)
-        throwErrno();
+        throw SystemException();
     if (::close(body().fd()) < 0)
-        throwErrno();
+        throw SystemException();
 }
 
 prefix_ void senf::SocketProtocol::terminate()