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
{
{
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