OpenCV453
公開メンバ関数 | 公開変数類 | 全メンバ一覧

Class passed to an error. [詳解]

#include <core.hpp>

std::exceptionを継承しています。

公開メンバ関数

 Exception ()
 
 Exception (int _code, const String &_err, const String &_func, const String &_file, int _line)
 
virtual const char * what () const CV_OVERRIDE throw ()
 
void formatMessage ()
 

公開変数類

String msg
 the formatted error message
 
int code
 error code [詳解]
 
String err
 error description
 
String func
 function name. Available only when the compiler supports getting it
 
String file
 source file name where the error has occurred
 
int line
 line number in the source file where the error has occurred
 

詳解

Class passed to an error.

This class encapsulates all or almost all necessary information about the error happened in the program. The exception is usually constructed and thrown implicitly via CV_Error and CV_Error_ macros.

参照
error

構築子と解体子

◆ Exception() [1/2]

cv::Exception::Exception ( )

Default constructor

◆ Exception() [2/2]

cv::Exception::Exception ( int  _code,
const String &  _err,
const String &  _func,
const String &  _file,
int  _line 
)

Full constructor. Normally the constructor is not called explicitly. Instead, the macros CV_Error(), CV_Error_() and CV_Assert() are used.

関数詳解

◆ what()

virtual const char * cv::Exception::what ( ) const
throw (
)
virtual
戻り値
the error description and the context as a text string.

メンバ詳解

◆ code

int cv::Exception::code

error code

参照
CVStatus

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