The standard OpenCV exception class. More...
#include <core.hpp>
Inherits std::exception.
Public Member Functions | |
Exception () | |
Default constructor. | |
Exception (int _code, const string &_err, const string &_func, const string &_file, int _line) | |
Full constructor. | |
virtual | ~Exception () throw () |
virtual const char * | what () const throw () |
void | formatMessage () |
Public Attributes | |
string | msg |
the formatted error message | |
int | code |
error code | |
string | err |
error description | |
string | func |
function name. Available only when the compiler supports __func__ macro | |
string | file |
source file name where the error has occured | |
int | line |
line number in the source file where the error has occured |
The standard OpenCV exception class.
Instances of the class are thrown by various functions and methods in the case of critical errors.
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 constuctor is not called explicitly. Instead, the macros CV_Error(), CV_Error_() and CV_Assert() are used.
virtual cv::Exception::~Exception | ( | ) | throw () [virtual] |
virtual const char* cv::Exception::what | ( | ) | const throw () [virtual] |
void cv::Exception::formatMessage | ( | ) |
string cv::Exception::msg |
the formatted error message
error code
string cv::Exception::err |
error description
string cv::Exception::func |
function name. Available only when the compiler supports __func__ macro
string cv::Exception::file |
source file name where the error has occured
line number in the source file where the error has occured