Navigation Menu

Skip to content

Commit

Permalink
Add comments to grnxx::Error.
Browse files Browse the repository at this point in the history
  • Loading branch information
s-yata committed Jun 23, 2014
1 parent 918cbb5 commit d472cd8
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions new-interface/error.hpp
Expand Up @@ -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:
Expand Down

0 comments on commit d472cd8

Please sign in to comment.