#include <cstring>
+#include <stdexcept>
#include "buffered.h"
-#include "except.h"
+#include "handle.h"
using namespace std;
{
unsigned len = below.write(begin, used);
- begin=end = buf;
+ begin = end = buf;
if(len<used)
- throw Exception("Couldn't flush all data");
+ throw runtime_error("Couldn't flush all data");
}
}
else if(cur_op==M_READ)
return end-begin;
}
-Handle Buffered::get_event_handle()
+const Handle &Buffered::get_event_handle()
{
- throw Exception("Buffered doesn't support events");
+ throw logic_error("Buffered doesn't support events");
}
} // namespace IO