Tidy up error types:

* Restructure header material
* Clean up namespace type injections
* Remove extraneous 'success' constants
This commit is contained in:
Vinnie Falco
2016-10-08 01:30:10 -04:00
parent d54d597f76
commit 60e637bd69
23 changed files with 260 additions and 292 deletions
+3 -3
View File
@@ -174,7 +174,7 @@ public:
error_code ec;
auto const used = write(data, size, ec);
if(ec)
throw boost::system::system_error{ec};
throw system_error{ec};
return used;
}
@@ -189,7 +189,7 @@ public:
error_code ec;
auto const used = write(buffers, ec);
if(ec)
throw boost::system::system_error{ec};
throw system_error{ec};
return used;
}
@@ -204,7 +204,7 @@ public:
error_code ec;
write_eof(ec);
if(ec)
throw boost::system::system_error{ec};
throw system_error{ec};
}
void