2013-02-11 61 views
0

我在某個區域註冊了cqListener。我怎麼能得到實際的錯誤爲什麼onError已經從方法const gemfire::CqEvent& cqEvent的參數發生?Gemfire從cqEvent獲取錯誤

我檢查了文檔,但他們似乎沒有任何方法可以在CqEvent類中實際檢索到可能的錯誤。

回答

1

@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也不包含獲取錯誤的方法。