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, ...@@ -44,7 +44,7 @@ peer(SocketHandle<SPolicy> handle, Address & addr,
addr.clear(); addr.clear();
try { try {
do_peer(handle,addr.sockaddr_p(),addr.sockaddr_len()); do_peer(handle,addr.sockaddr_p(),addr.sockaddr_len());
} catch (SystemException & e) { } catch (Exception & e) {
e << "; could not get peer for address \"" << addr << "\""; e << "; could not get peer for address \"" << addr << "\"";
throw; throw;
} }
...@@ -66,7 +66,7 @@ connect(SocketHandle<SPolicy> handle, Address const & addr, ...@@ -66,7 +66,7 @@ connect(SocketHandle<SPolicy> handle, Address const & addr,
{ {
try { try {
do_connect(handle,addr.sockaddr_p(),addr.sockaddr_len()); do_connect(handle,addr.sockaddr_p(),addr.sockaddr_len());
} catch (SystemException & e) { } catch (Exception & e) {
e << "; could not connect to address \"" << addr << "\""; e << "; could not connect to address \"" << addr << "\"";
throw; throw;
} }
...@@ -86,7 +86,7 @@ prefix_ void senf::GenericAddressingPolicy<Address>::local(FileHandle handle, ...@@ -86,7 +86,7 @@ prefix_ void senf::GenericAddressingPolicy<Address>::local(FileHandle handle,
addr.clear(); addr.clear();
try { try {
do_local(handle,addr.sockaddr_p(),addr.sockaddr_len()); do_local(handle,addr.sockaddr_p(),addr.sockaddr_len());
} catch (SystemException & e) { } catch (Exception & e) {
// TODO: identify socket by some meaningful attribute // TODO: identify socket by some meaningful attribute
e << "; could not get name for address \"" << addr << "\""; e << "; could not get name for address \"" << addr << "\"";
throw; throw;
...@@ -99,7 +99,7 @@ prefix_ void senf::GenericAddressingPolicy<Address>::bind(FileHandle handle, ...@@ -99,7 +99,7 @@ prefix_ void senf::GenericAddressingPolicy<Address>::bind(FileHandle handle,
{ {
try { try {
do_bind(handle,addr.sockaddr_p(),addr.sockaddr_len()); do_bind(handle,addr.sockaddr_p(),addr.sockaddr_len());
} catch (SystemException & e) { } catch (Exception & e) {
e << "; could not bind to address \"" << addr << "\""; e << "; could not bind to address \"" << addr << "\"";
throw; 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