[Groonga-commit] groonga/grnxx at d472cd8 [master] Add comments to grnxx::Error.

Back to archive index

susumu.yata null+****@clear*****
Mon Jun 23 14:57:38 JST 2014


susumu.yata	2014-06-23 14:57:38 +0900 (Mon, 23 Jun 2014)

  New Revision: d472cd89d9339fb18e3f03c29b5cd1cce0cadabe
  https://github.com/groonga/grnxx/commit/d472cd89d9339fb18e3f03c29b5cd1cce0cadabe

  Message:
    Add comments to grnxx::Error.

  Modified files:
    new-interface/error.hpp

  Modified: new-interface/error.hpp (+8 -0)
===================================================================
--- new-interface/error.hpp    2014-06-23 14:57:21 +0900 (9da57f5)
+++ new-interface/error.hpp    2014-06-23 14:57:38 +0900 (deb4720)
@@ -19,9 +19,17 @@ namespace grnxx {
 // 使うのであれば, message_ の生成がネックになりうる.
 class Error {
  public:
+  // エラーがない状態を示すように初期化する.
+  Error();
+  ~Error();
+
+  // __LINE__ により得られる行番号を取得する.
   int line() const;
+  // __FILE__ により得られるファイル名を取得する.
   const char *file() const;
+  // __func__, __FUNCTION__, __PRETTY_FUNCTION__ により得られる関数名を取得する.
   const char *function() const;
+  // エラーメッセージを取得する.
   const char *message() const;
 
 // private:
-------------- next part --------------
HTML����������������������������...
Télécharger 



More information about the Groonga-commit mailing list
Back to archive index