Common Library  0.9.5
error_library.h ファイル

エラー・例外処理定義用ヘッダ [詳解]

データ構造

struct  tadah_fussy::exception::Length
 コンテナクラスの長さに関する例外クラス [詳解]
 
class  tadah_fussy::exception::InvalidLength< T >
 長さが不正だった場合に対する例外クラス [詳解]
 
class  tadah_fussy::exception::NegativeLength< T >
 長さが負値だった場合に対する例外クラス [詳解]
 
class  tadah_fussy::exception::NotPositiveLength< T >
 長さがゼロ以下だった場合に対する例外クラス [詳解]
 
class  tadah_fussy::exception::NotEqualLength< T >
 長さを比較して等しくなかった場合に投げられる例外クラス [詳解]
 
class  tadah_fussy::exception::ExcessLimit
 反復処理において処理回数が最大回数を超過した場合の例外クラス [詳解]
 
struct  tadah_fussy::exception::Domain
 指定範囲外だった場合に投げられる例外クラス [詳解]
 
class  tadah_fussy::exception::TooLittleNumber< T >
 指定した値より小さい場合に投げられる例外クラス [詳解]
 
class  tadah_fussy::exception::TooGreatNumber< T >
 指定した値より大きい場合に投げられる例外クラス [詳解]
 
class  tadah_fussy::exception::NotEqualNumber< T >
 指定した値と等しくない場合に投げられる例外クラス [詳解]
 
class  tadah_fussy::exception::ZeroLimits< T >
 ゼロを境界とする範囲チェック用例外クラス [詳解]
 
class  tadah_fussy::exception::NegativeNumber< T >
 値が負値だった場合に対する例外クラス [詳解]
 
class  tadah_fussy::exception::NotPositiveNumber< T >
 値がゼロ以下だった場合に対する例外クラス [詳解]
 

名前空間

 tadah_fussy
 作成者 tadah_fussy
 
 tadah_fussy::exception
 例外用名前空間
 
 tadah_fussy::error_lib
 エラーチェック・処理ルーチン用名前空間
 
 tadah_fussy::error_message
 エラー・メッセージ用名前空間
 

関数

template<class T , class Pred , class Exception >
tadah_fussy::error_lib::CheckTool (Pred pred, const Exception &exception, T t)
 判定関数と、判定結果に対する処理関数の組み合わせにより値を処理するための関数 [詳解]
 
template<class In >
std::iterator_traits< In >::difference_type tadah_fussy::error_lib::ArrayLength (In s, In e, const std::string &info)
 データ列の長さを返す [詳解]
 
template<class In >
std::iterator_traits< In >::difference_type tadah_fussy::error_lib::ArrayLength (In s, In e)
 データ列の長さを返す [詳解]
 
template<class In >
void tadah_fussy::error_lib::CheckArrayLength (In s, In e, const std::string &info)
 データ列の長さをチェックする [詳解]
 
template<class In >
void tadah_fussy::error_lib::CheckArrayLength (In s, In e)
 データ列の長さをチェックする [詳解]
 
template<class In >
void tadah_fussy::error_lib::CheckArrayLength (In s, In e, typename std::iterator_traits< In >::difference_type len, const std::string &infoNegativeLength, const std::string &infoNotEqualLength)
 データ列の長さをチェックする [詳解]
 
template<class In >
void tadah_fussy::error_lib::CheckArrayLength (In s, In e, typename std::iterator_traits< In >::difference_type len)
 データ列の長さをチェックする [詳解]
 
template<class T >
tadah_fussy::error_lib::NNNum (T t, const std::string &info)
 負値でないかをチェックする (Not Negative Number) [詳解]
 
template<class T >
tadah_fussy::error_lib::NNNum (T t)
 負値でないかをチェックする (Not Negative Number) [詳解]
 
template<class T >
tadah_fussy::error_lib::PNum (T t, const std::string &info)
 正値(ゼロより大)であるかをチェックする (Positive Number) [詳解]
 
template<class T >
tadah_fussy::error_lib::PNum (T t)
 正値(ゼロより大)であるかをチェックする (Positive Number) [詳解]
 
template<class T >
tadah_fussy::error_lib::LE (T t, T max, const std::string &info)
 指定値以下であるかをチェックする [詳解]
 
template<class T >
tadah_fussy::error_lib::LE (T t, T max)
 指定値以下であるかをチェックする [詳解]
 
template<class T >
tadah_fussy::error_lib::LT (T t, T max, const std::string &info)
 指定値より小さいかをチェックする [詳解]
 
template<class T >
tadah_fussy::error_lib::LT (T t, T max)
 指定値より小さいかをチェックする [詳解]
 
template<class T >
tadah_fussy::error_lib::GE (T t, T min, const std::string &info)
 指定値以上であるかをチェックする [詳解]
 
template<class T >
tadah_fussy::error_lib::GE (T t, T min)
 指定値以上であるかをチェックする [詳解]
 
template<class T >
tadah_fussy::error_lib::GT (T t, T min, const std::string &info)
 指定値より大きいかをチェックする [詳解]
 
template<class T >
tadah_fussy::error_lib::GT (T t, T min)
 指定値より大きいかをチェックする [詳解]
 
template<class T >
tadah_fussy::error_lib::EQ (T t, T correct, const std::string &info)
 指定値と等しいかをチェックする [詳解]
 
template<class T >
tadah_fussy::error_lib::EQ (T t, T correct)
 指定値と等しいかをチェックする [詳解]
 
template<class In1 , class In2 >
std::iterator_traits< In1 >::difference_type tadah_fussy::error_lib::CheckBivariable (In1 s1, In1 e1, In2 s2, In2 e2, const std::string &infoNegativeLength1, const std::string &infoNegativeLength2, const std::string &infoNotEqualLength)
 二つのデータ列が有効かをチェックする [詳解]
 
template<class In1 , class In2 >
std::iterator_traits< In1 >::difference_type tadah_fussy::error_lib::CheckBivariable (In1 s1, In1 e1, In2 s2, In2 e2)
 二つのデータ列が有効かをチェックする [詳解]
 

変数

const std::string tadah_fussy::error_message::EXCESS_LIMIT = "iteration times exceeded the limit"
 処理速度が最大限度を超えたときのエラー・メッセージ
 
const std::string tadah_fussy::error_message::NEGATIVE_LENGTH = "must not be negative length"
 データ列の長さが負数であった場合のエラー・メッセージ
 
const std::string tadah_fussy::error_message::NOT_EQUAL_LENGTH = "must be equal to"
 データ列の長さが指定値に一致しない場合のエラー・メッセージ
 
const std::string tadah_fussy::error_message::NNNUM = "must not be negative"
 値が負値だった場合のエラー・メッセージ
 
const std::string tadah_fussy::error_message::PNUM = "must be positive"
 値がゼロ以下だった場合のエラー・メッセージ
 
const std::string tadah_fussy::error_message::LE = "must be less than or equal to"
 値が指定値より大きい場合のエラー・メッセージ
 
const std::string tadah_fussy::error_message::LT = "must be less than"
 値が指定値以上だった場合のエラー・メッセージ
 
const std::string tadah_fussy::error_message::GE = "must be greater than or equal to"
 値が指定値より小さい場合のエラー・メッセージ
 
const std::string tadah_fussy::error_message::GT = "must be greater than"
 値が指定値以下だった場合のエラー・メッセージ
 
const std::string tadah_fussy::error_message::EQ = "must be equal to"
 値が指定値と等しくない場合のエラー・メッセージ
 

詳解

エラー・例外処理定義用ヘッダ

著者
tadah_fussy
日付
2015/12/19 新規作成
2019/03/27 コメントの見直し
2019/04/16 例外が出力するメッセージを外部から指定できるように仕様変更
2019/04/18 デフォルトのエラー・メッセージを追加
2019/04/19 ポリシー・クラスの廃止
2019/04/24 例外情報を除いたエラーチェック関数を追加
2021/03/13 名前空間の変更、bind2nd の廃止(bindへ変更)
2021/04/02 文字コードを UTF-8 に変更