msgpack/msgpack-rpc — Issue #38: msgpack::rpc::connect_error
Author: impullz
Created: 2011-12-13 17:35:45+00:00
State: open

Hi,

I'm trying to catch the connect error as written in the test file:

try {
rpc::client cli("127.0.0.1", 16396);
cli.call("add", 1, 2).get();
} catch(msgpack::rpc::connect_error& e) {
std::cout << "ok: "<< e.what() << std::endl;
}

but the error is catched only if I use the 127.x.x.x class or 0.x.x.x class.
I've tryed also to catch msgpack::rpc::remote_error or msgpack::rpc::timeout_error but the result is the same.

I'm using C++ language.

Yuri