Project

General

Profile

BitmapToolkit Scol plugin
raspicam::Exception Class Reference

#include <exceptions.h>

Inheritance diagram for raspicam::Exception:

Public Member Functions

 Exception ()
 
 Exception (int _code, const std::string &_err, const std::string &_func, const std::string &_file, int _line)
 
virtual ~Exception () throw ()
 
virtual const char * what () const throw ()
 
void formatMessage ()
 

Public Attributes

std::string msg
 the formatted error message
 
int code
 error code
 
std::string err
 error description
 
std::string func
 function name. Available only when the compiler supports func macro
 
std::string file
 source file name where the error has occured
 
int line
 line number in the source file where the error has occured
 

Detailed Description

The standard exception class.

Definition at line 59 of file exceptions.h.

Constructor & Destructor Documentation

◆ Exception() [1/2]

raspicam::Exception::Exception ( )
inline

Default constructor

Definition at line 65 of file exceptions.h.

◆ Exception() [2/2]

raspicam::Exception::Exception ( int  _code,
const std::string &  _err,
const std::string &  _func,
const std::string &  _file,
int  _line 
)
inline

Full constructor. Normally the constuctor is not called explicitly. Instead, the macros CV_Error(), CV_Error_() and CV_Assert() are used.

Definition at line 73 of file exceptions.h.

◆ ~Exception()

virtual raspicam::Exception::~Exception ( )
throw (
)
inlinevirtual

Definition at line 78 of file exceptions.h.

Member Function Documentation

◆ formatMessage()

void raspicam::Exception::formatMessage ( )
inline

Definition at line 86 of file exceptions.h.

◆ what()

virtual const char * raspicam::Exception::what ( ) const
throw (
)
inlinevirtual
Returns
the error description and the context as a text string.

Definition at line 83 of file exceptions.h.

Member Data Documentation

◆ code

int raspicam::Exception::code

error code

See also
CVStatus

Definition at line 96 of file exceptions.h.

◆ err

std::string raspicam::Exception::err

error description

Definition at line 97 of file exceptions.h.

◆ file

std::string raspicam::Exception::file

source file name where the error has occured

Definition at line 99 of file exceptions.h.

◆ func

std::string raspicam::Exception::func

function name. Available only when the compiler supports func macro

Definition at line 98 of file exceptions.h.

◆ line

int raspicam::Exception::line

line number in the source file where the error has occured

Definition at line 100 of file exceptions.h.

◆ msg

std::string raspicam::Exception::msg

the formatted error message

Definition at line 94 of file exceptions.h.


The documentation for this class was generated from the following file: