ecorm / cppwamp

C++ client library for the WAMP protocol.
Boost Software License 1.0
35 stars 9 forks source link

Conversion lookup failures not propagated to RPC caller #97

Closed ecorm closed 8 years ago

ecorm commented 8 years ago

When a lookup fails during FromConverter::operator(const String& key, T& value), a std::out_of_range exception is thrown. If this happens during RPC argument demarshalling, it'll result in a program crash.

FromConverter::operator(const String& key, T& value) should catch the std::out_of_range exception, then rethrow a wamp::error::Conversion exception. The RPC invocation mechanism would then catch the wamp::error::Conversion exception and return an ERROR message to the caller.