regex_error 構造体

struct regex_error : public std::runtime_error, public exception

regex_error クラスは、正規表現を表す文字列を有限状態マシンに変換するときに、エラーを報告するのに送出する例外オブジェクトの型を定義する。

概要

// ヘッダ:<>boost/xpressive/regex_error.hpp>


struct regex_error : public std::runtime_error, public exception {
  // 構築、コピー、解体
  regex_error(regex_constants::error_type, char const * = "");
  ~regex_error();

  // 公開メンバ関数
  regex_constants::error_type code() const;
};

説明

regex_error 構築、コピー、解体の公開演算

explicit regex_error(regex_constants::error_type code, char const *str = "")

regex_error クラスのオブジェクトを構築する。

パラメータ
  • code -- この regex_error が表す error_type

  • str -- この regex_error のメッセージ文字列。

事後条件

code() == code

~regex_error()

regex_error クラスのデストラクタ。

例外

例外は送出しない。

regex_error 公開メンバ関数

regex_constants::error_type code() const

error_type 値のアクセス子。

戻り値

コンストラクタに渡した error_type コード。

例外

例外は送出しない。