Utils: Removed ErrnoException and implemented generic Exception base-class
[senf.git] / Scheduler / WriteHelper.ct
index 17d06f4..49d096c 100644 (file)
@@ -78,7 +78,7 @@ prefix_ void senf::WriteHelper<Handle>::process(Handle handle,
     bool complete_ (false);
     try {
         if (event != senf::Scheduler::EV_WRITE)
-            throwErrno(EPIPE);
+            throw SystemException(EPIPE);
         offset_ = handle.write(std::make_pair(offset_,data_.end()));
         if (offset_ == data_.end()) {
             data_.erase();