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;
}
{
try {
do_connect(handle,addr.sockaddr_p(),addr.sockaddr_len());
- } catch (SystemException & e) {
+ } catch (Exception & e) {
e << "; could not connect to address \"" << addr << "\"";
throw;
}
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;
{
try {
do_bind(handle,addr.sockaddr_p(),addr.sockaddr_len());
- } catch (SystemException & e) {
+ } catch (Exception & e) {
e << "; could not bind to address \"" << addr << "\"";
throw;
}