OnixS C++ CME MDP Premium Market Data Handler  5.8.9
API Documentation
Errors and warnings

The SDK uses exceptions to report errors synchronously.

To report errors and warnings asynchronously, the handler invokes OnixS::CME::MDH::HandlerListener::onWarning and OnixS::CME::MDH::HandlerListener::onError methods.

For example:

struct : public HandlerListener
{
void onWarning(Handler&, const WarningArgs& warning)
{
std::cout << "Warning:" << warning.description() << std::endl;
}
void onError(Handler&, const ErrorArgs& error)
{
std::cout << "Error:" << error.description() << std::endl;
}
}
listener;
Handler handler;
handler.settings().listeners().handler(&listener);
See also
Event listeners