0

cqListener在一个地区注册。我怎样才能onError从方法的参数中得到实际错误的原因const gemfire::CqEvent& cqEvent

我检查了文档,但似乎他们在类上没有任何方法CqEvent可以实际检索可能的错误。

4

1 回答 1

1

@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.

于 2013-09-06T11:49:04.060 回答