Class passed to an error.
More...
#include <opencv2/core.hpp>
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.
- See also
- error
- Examples:
- samples/cpp/pca.cpp, and samples/tapi/hog.cpp.
§ Exception() [1/2]
cv::Exception::Exception |
( |
| ) |
|
§ Exception() [2/2]
cv::Exception::Exception |
( |
int |
_code, |
|
|
const String & |
_err, |
|
|
const String & |
_func, |
|
|
const String & |
_file, |
|
|
int |
_line |
|
) |
| |
§ ~Exception()
virtual cv::Exception::~Exception |
( |
| ) |
|
throw | ( | |
| ) | | |
|
virtual |
§ formatMessage()
void cv::Exception::formatMessage |
( |
| ) |
|
§ what()
virtual const char* cv::Exception::what |
( |
| ) |
const |
throw | ( | |
| ) | | |
|
virtual |
§ code
§ err
§ file
source file name where the error has occurred
§ func
function name. Available only when the compiler supports getting it
§ line
line number in the source file where the error has occurred
§ msg
The documentation for this class was generated from the following file: