10 #ifndef INC_THEMIS_EXCEPT_H__ 11 #define INC_THEMIS_EXCEPT_H__ 33 const char*
what() const noexcept
override 35 static const char rstr[] =
"themis::EmptyException";
45 std::ostream&
operator<<(std::ostream& os,
const Exception& ex);
76 Exception(
const std::string& c,
const std::string& f,
const std::string& m)
78 msg_ = c +
"::" + f +
" : " + m;
88 const char*
what() const noexcept
override 90 static const char rstr[] =
"themis::Exception";
101 return os << ex.
msg_;
std::string msg_
メッセージ文字列
Definition: except.h:56
Exception(const std::string &m)
構築子
Definition: except.h:67
const char * what() const noexcept override
エラー内容取得
Definition: except.h:33
EmptyException() noexcept
Definition: except.h:26
~Exception()
解體子
Definition: except.h:82
Exception() noexcept
デフォルト構築子
Definition: except.h:62
メッセージ文字列を持つ例外クラス
Definition: except.h:50
const char * what() const noexcept override
エラー内容取得
Definition: except.h:88
空の例外クラス
Definition: except.h:23
Exception(const std::string &c, const std::string &f, const std::string &m)
メッセージ文字列の頭にクラス名、函數名を附加する場合の構築子
Definition: except.h:76
std::ostream & operator<<(std::ostream &os, const Exception &ex)
出力ストリームにメッセージ文字列を出力
Definition: except.h:99
virtual ~EmptyException() noexcept
Definition: except.h:27