c++ - Gemfire 从 cqEvent 获取错误

标签 c++ c listener gemfire

我在某个区域注册了一个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/

相关文章:

c - 对 `startswith' 的 undefined reference

javascript - 套接字IO : Client side 'connect' event not firing when socket is already setup

java - "Listener"类实现之间有什么区别?

C++ 动态内存分配 VS 自动内存分配

c++ - 如何强制执行有关指针数据成员的常量正确性

c++ - 为什么这个类的部分模板专门化代码不起作用?

c++ - 捕获到缓冲区 QT

c - 在 C 中使用指针对数组进行排序时遇到问题

c - 在 C 中使用 foo() && 0 安全吗?

Java 监控 Activity 的网络 session