LIBTHEMIS
公開メンバ関数 | 限定公開変数類 | フレンド | 全メンバ一覧
themis::Exception クラス

メッセージ文字列を持つ例外クラス [詳解]

#include <except.h>

themis::Exception の継承関係図
Inheritance graph
[凡例]
themis::Exception 連携図
Collaboration graph
[凡例]

公開メンバ関数

 Exception () noexcept
 デフォルト構築子 [詳解]
 
 Exception (const std::string &m)
 構築子 [詳解]
 
 Exception (const std::string &c, const std::string &f, const std::string &m)
 メッセージ文字列の頭にクラス名、函數名を附加する場合の構築子 [詳解]
 
 ~Exception ()
 解體子 [詳解]
 
const char * what () const noexcept override
 エラー内容取得 [詳解]
 
- 基底クラス themis::EmptyException に属する継承公開メンバ関数
 EmptyException () noexcept
 
virtual ~EmptyException () noexcept
 
const char * what () const noexcept override
 エラー内容取得 [詳解]
 

限定公開変数類

std::string msg_
 メッセージ文字列 [詳解]
 

フレンド

std::ostream & themis::operator<< (std::ostream &os, const Exception &ex)
 

詳解

メッセージ文字列を持つ例外クラス

構築子と解体子

◆ Exception() [1/3]

themis::Exception::Exception ( )
inlinenoexcept

デフォルト構築子

メッセージを空文字で初期化する。

◆ Exception() [2/3]

themis::Exception::Exception ( const std::string &  m)
inline

構築子

メッセージ文字列を文字列mで初期化する。

◆ Exception() [3/3]

themis::Exception::Exception ( const std::string &  c,
const std::string &  f,
const std::string &  m 
)
inline

メッセージ文字列の頭にクラス名、函數名を附加する場合の構築子

メッセージ文字列を、"クラス名c::函數名f : メッセージm"の書式で 初期化する。

引数
cクラス名
f函數名
mメッセージ

◆ ~Exception()

themis::Exception::~Exception ( )
inline

解體子

関数詳解

◆ what()

const char* themis::Exception::what ( ) const
inlineoverridenoexcept

エラー内容取得

std::exception::what()をオーバーライド。 C文字列"themis::Exception"を返す。

フレンドと関連関数の詳解

◆ themis::operator<<

std::ostream& themis::operator<< ( std::ostream &  os,
const Exception ex 
)
friend

メンバ詳解

◆ msg_

std::string themis::Exception::msg_
protected

メッセージ文字列


このクラス詳解は次のファイルから抽出されました: