我在某个区域有一个注册的cqListener
。我如何从方法onError
的参数中获取为什么出现const gemfire::CqEvent& cqEvent
的实际错误?
我检查了文档,但似乎他们在CqEvent
类上没有任何方法可以准确地检索可能的错误。
最佳答案
@亚历克斯
嗨,亚历克斯,
查看说明文件内容:
/**
* This method is invoked when there is an error during CQ processing.
* The error can appear while applying query condition on the event.
* e.g if the event doesn't has attributes as specified in the CQ query.
* This event does contain an error. The newValue may or may not be
* available, and will be NULLPTR if not available.
*/
virtual void onError(const CqEvent& aCqEvent);
它明确提到“此事件确实包含错误”。并且CqEvent也不包含获取错误的方法。
关于c++ - Gemfire从cqEvent获取错误,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/14811562/