Common Library  0.9.5
tadah_fussy::exception::Domain 構造体abstract

指定範囲外だった場合に投げられる例外クラス [詳解]

tadah_fussy::exception::Domain の継承関係図
tadah_fussy::exception::NotEqualNumber< T > tadah_fussy::exception::TooGreatNumber< T > tadah_fussy::exception::TooLittleNumber< T > tadah_fussy::exception::ZeroLimits< T > tadah_fussy::exception::NegativeNumber< T > tadah_fussy::exception::NotPositiveNumber< T >

公開メンバ関数

 Domain (const std::string &info)
 例外に関する情報を指定して構築 [詳解]
 
virtual void printInfo (std::ostream &os) const =0
 不正値や指定範囲などの情報を出力する(純粋仮想関数) [詳解]
 

詳解

指定範囲外だった場合に投げられる例外クラス

渡された値がある範囲内にあるか、正値か、負値ではないかなどをチェックし、 そうでなかった場合に投げられる例外クラスの基底となる。 std::domain_error からの派生クラスなので std::domain_error として捕捉することができる。

構築子と解体子

◆ Domain()

tadah_fussy::exception::Domain::Domain ( const std::string &  info)
inlineexplicit

例外に関する情報を指定して構築

引数
info例外に関する情報

関数詳解

◆ printInfo()

virtual void tadah_fussy::exception::Domain::printInfo ( std::ostream &  os) const
pure virtual

不正値や指定範囲などの情報を出力する(純粋仮想関数)

引数
os対象の出力ストリーム

tadah_fussy::exception::TooLittleNumber< T >, tadah_fussy::exception::TooGreatNumber< T >, tadah_fussy::exception::NotEqualNumber< T >, tadah_fussy::exception::ZeroLimits< T >で実装されています。


この構造体詳解は次のファイルから抽出されました: