我cqListener
在一个地区注册。我怎样才能onError
从方法的参数中得到实际错误的原因const gemfire::CqEvent& cqEvent
?
我检查了文档,但似乎他们在类上没有任何方法CqEvent
可以实际检索可能的错误。
@Alex Hi Alex, See what documentation says:
/**
* 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);
It explicitly mentions "This event does contain an error". and CqEvent also does not contain method to get the error.