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.
cv::Exception::Exception | ( | ) |
Default constructor
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.
|
virtual |
int cv::Exception::code |
error code