Class passed to an error.
More...
#include <opencv2/core.hpp>
|
int | code |
| error code
|
|
String | err |
| error description
|
|
String | file |
| source file name where the error has occurred
|
|
String | func |
| function name. Available only when the compiler supports getting it
|
|
int | line |
| line number in the source file where the error has occurred
|
|
String | msg |
| the formatted error message
|
|
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 |
( |
| ) |
|
|
virtualnoexcept |
◆ formatMessage()
void cv::Exception::formatMessage |
( |
| ) |
|
◆ what()
virtual const char * cv::Exception::what |
( |
| ) |
const |
|
overridevirtualnoexcept |
◆ code
error code
- See also
- CVStatus
◆ 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: