OpenCV 5.0.0
Open Source Computer Vision
読み込み中...
検索中...
見つかりません
🤖 AIによる機械翻訳(非公式) — これは OpenCV 5.0.0 公式リファレンス(英語)を AI (Claude) で自動翻訳したものです。訳に誤りを含む場合があります。正確な情報は 公式英語版(原文) を参照してください。

エラーに渡されるクラス。続き...

#include <opencv2/core/exception.hpp>

Collaboration diagram for cv::Exception:

公開メンバ関数

 Exception ()
 
 Exception (Error::Code _code, const std::string &_err, const std::string &_func, const std::string &_file, int _line)
 
virtual ~Exception () CV_NOEXCEPT
 
const char * codeMessage () const
 
void formatMessage ()
 
virtual const char * what () const CV_NOEXCEPT CV_OVERRIDE
 

公開変数類

Error::Code code
 エラーコード
 
std::string err
 エラーの説明
 
std::string file
 エラーが発生したソースファイル名
 
std::string func
 関数名。コンパイラが取得をサポートしている場合のみ利用可能
 
int line
 エラーが発生したソースファイル内の行番号
 
std::string msg
 整形済みのエラーメッセージ
 

詳細説明

エラーに渡されるクラス。

このクラスは、プログラム内で発生したエラーに関する必要な情報のすべて、またはほぼすべてをカプセル化する。例外は通常、CV_Error および CV_Error_ マクロを介して暗黙的に構築されスローされる。

参照
error
samples/cpp/pca.cpp, samples/cpp/snippets/chromatic_aberration_correction.cpp, samples/cpp/snippets/detect_blob.cpp, samples/hog_tapi.cpp で使用されている。

構築子と解体子の詳解

◆ Exception() [1/2]

cv::Exception::Exception ( )

デフォルトコンストラクタ

◆ Exception() [2/2]

cv::Exception::Exception ( Error::Code _code,
const std::string & _err,
const std::string & _func,
const std::string & _file,
int _line )

フルコンストラクタ。通常、このコンストラクタは明示的に呼び出さない。代わりにマクロ CV_Error()CV_Error_()CV_Assert() が使用される。

◆ ~Exception()

virtual cv::Exception::~Exception ( )
virtual

メンバ関数詳解

◆ codeMessage()

const char * cv::Exception::codeMessage ( ) const

◆ formatMessage()

void cv::Exception::formatMessage ( )

◆ what()

virtual const char * cv::Exception::what ( ) const
virtual
戻り値
エラーの説明とコンテキストをテキスト文字列として返す。
samples/cpp/snippets/chromatic_aberration_correction.cpp, samples/hog_tapi.cpp で使用されている。

メンバ変数詳解

◆ code

Error::Code cv::Exception::code

エラーコード

参照
CVStatus

◆ err

std::string cv::Exception::err

エラーの説明

◆ file

std::string cv::Exception::file

エラーが発生したソースファイル名

◆ func

std::string cv::Exception::func

関数名。コンパイラが取得をサポートしている場合のみ利用可能

◆ line

int cv::Exception::line

エラーが発生したソースファイル内の行番号

◆ msg

std::string cv::Exception::msg

整形済みのエラーメッセージ

samples/cpp/pca.cpp, samples/cpp/snippets/detect_blob.cpp で使用されている。

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