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

コンテナクラスの長さに関する例外クラス [詳解]

tadah_fussy::exception::Length の継承関係図
tadah_fussy::exception::InvalidLength< T > tadah_fussy::exception::NotEqualLength< T > tadah_fussy::exception::NegativeLength< T > tadah_fussy::exception::NotPositiveLength< T >

公開メンバ関数

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

詳解

コンテナクラスの長さに関する例外クラス

コンテナの先頭・末尾位置が適正か、二つのコンテナの長さが等しいかなどをチェックし、 そうでなかった場合に投げられる例外クラスの基底となる。 std::length_error からの派生クラスなので std::length_error として捕捉することができる。

構築子と解体子

◆ Length()

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

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

引数
info例外に関する情報

関数詳解

◆ printInfo()

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

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

引数
os出力ストリームへの参照
戻り値
なし

tadah_fussy::exception::InvalidLength< T >, tadah_fussy::exception::NotEqualLength< T >で実装されています。


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