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