Utils: Removed ErrnoException and implemented generic Exception base-class
[senf.git] / Socket / SocketProtocol.cc
index 4c78a9f..672f21f 100644 (file)
@@ -1,8 +1,8 @@
 // $Id$
 //
 // Copyright (C) 2006
-// Fraunhofer Institute for Open Communication Systems (FOKUS) 
-// Competence Center NETwork research (NET), St. Augustin, GERMANY 
+// Fraunhofer Institute for Open Communication Systems (FOKUS)
+// Competence Center NETwork research (NET), St. Augustin, GERMANY
 //     Stefan Bund <g0dil@berlios.de>
 //
 // This program is free software; you can redistribute it and/or modify
 //#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()