Gemfire从cqEvent获取错误
问题描述:
我在某个区域注册了cqListener
。我怎么能得到实际的错误为什么onError
已经从方法const gemfire::CqEvent& cqEvent
的参数发生?Gemfire从cqEvent获取错误
我检查了文档,但他们似乎没有任何方法可以在CqEvent
类中实际检索到可能的错误。
答
@Alex 亚历嗨, 看什么文件说:
/**
* 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也不包含获取错误的方法。