From: jkaeber Date: Thu, 6 Mar 2008 09:48:01 +0000 (+0000) Subject: Catch senf::Exception instead of senf::SystemException X-Git-Url: http://g0dil.de/git?a=commitdiff_plain;h=b3b07562c8433e19c216a92b0961cdc323f97d6d;p=senf.git Catch senf::Exception instead of senf::SystemException git-svn-id: https://svn.berlios.de/svnroot/repos/senf/trunk@731 270642c3-0616-0410-b53a-bc976706d245 --- diff --git a/Socket/Protocols/GenericAddressingPolicy.cti b/Socket/Protocols/GenericAddressingPolicy.cti index 2d94d32..6cba6c2 100644 --- a/Socket/Protocols/GenericAddressingPolicy.cti +++ b/Socket/Protocols/GenericAddressingPolicy.cti @@ -44,7 +44,7 @@ peer(SocketHandle 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 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
::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
::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; }