Skip to content
Snippets Groups Projects
Commit ffdfbcf6 authored by jkaeber's avatar jkaeber
Browse files

Catch senf::Exception instead of senf::SystemException

parent 1f19f79c
No related branches found
No related tags found
No related merge requests found
......@@ -44,7 +44,7 @@ peer(SocketHandle<SPolicy> handle, Address & addr,
addr.clear();
try {
do_peer(handle,addr.sockaddr_p(),addr.sockaddr_len());
} catch (SystemException & e) {
} catch (Exception & e) {
e << "; could not get peer for address \"" << addr << "\"";
throw;
}
......@@ -66,7 +66,7 @@ connect(SocketHandle<SPolicy> handle, Address const & addr,
{
try {
do_connect(handle,addr.sockaddr_p(),addr.sockaddr_len());
} catch (SystemException & e) {
} catch (Exception & e) {
e << "; could not connect to address \"" << addr << "\"";
throw;
}
......@@ -86,7 +86,7 @@ prefix_ void senf::GenericAddressingPolicy<Address>::local(FileHandle handle,
addr.clear();
try {
do_local(handle,addr.sockaddr_p(),addr.sockaddr_len());
} catch (SystemException & e) {
} catch (Exception & e) {
// TODO: identify socket by some meaningful attribute
e << "; could not get name for address \"" << addr << "\"";
throw;
......@@ -99,7 +99,7 @@ prefix_ void senf::GenericAddressingPolicy<Address>::bind(FileHandle handle,
{
try {
do_bind(handle,addr.sockaddr_p(),addr.sockaddr_len());
} catch (SystemException & e) {
} catch (Exception & e) {
e << "; could not bind to address \"" << addr << "\"";
throw;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment