Class cv::Exception#
Class passed to an error. View details
#include <opencv2/core/exception.hpp>Collaboration diagram for cv::Exception:
Detailed Description#
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
Constructor & Destructor Documentation#
Exception()#
Default constructor
Exception()#
cv::Exception::Exception(
Error::Code _code,
const std::string & _err,
const std::string & _func,
const std::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.
~Exception()#
Member Function Documentation#
codeMessage()#
const char * cv::Exception::codeMessage()
formatMessage()#
void cv::Exception::formatMessage()
what()#
const char * cv::Exception::what()
Returns
the error description and the context as a text string.
Member Data Documentation#
code#
Error::Code cv::Exception::code
error code
See also
CVStatus
err#
std::string cv::Exception::err
error description
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#
int cv::Exception::line
line number in the source file where the error has occurred
msg#
std::string cv::Exception::msg
the formatted error message
Source file#
The documentation for this class was generated from the following file:
opencv2/core/exception.hpp