我在某个区域注册了一个cqListener
。我如何从方法 const gemfire::CqEvent& cqEvent
的参数中获取发生 onError
的实际错误?
我检查了文档,但似乎他们在 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/