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.
When a lookup fails during
FromConverter::operator(const String& key, T& value)
, astd::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 thestd::out_of_range
exception, then rethrow awamp::error::Conversion
exception. The RPC invocation mechanism would then catch thewamp::error::Conversion
exception and return anERROR
message to the caller.