Utils: Implement more flexible SystemException
[senf.git] / Socket / FileHandle.cci
index 312bc4e..62b9304 100644 (file)
@@ -54,7 +54,7 @@ prefix_  senf::FileBody::~FileBody()
 prefix_ void senf::FileBody::close()
 {
     if (!valid())
-        throw SystemException(EBADF);
+        throwErrno(EBADF);
     v_close();
     fd_ = -1;
 }