#include <cstring>
+#include <stdexcept>
#include "buffered.h"
-#include "except.h"
using namespace std;
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)
Handle Buffered::get_event_handle()
{
- throw Exception("Buffered doesn't support events");
+ throw logic_error("Buffered doesn't support events");
}
} // namespace IO