opencv on mbed

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

Exception Class Reference

Class passed to an error. More...

#include <core.hpp>

Inherited by FLANNException.

Public Member Functions

 Exception ()
 Exception (int _code, const String &_err, const String &_func, const String &_file, int _line)
virtual const char * what () const throw ()

Data Fields

String msg
 the formatted error message
int code
 error code
String err
 error description
String func
 function name. Available only when the compiler supports getting it
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

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

Definition at line 109 of file core.hpp.


Constructor & Destructor Documentation

Exception (  )

Default constructor

Exception ( int  _code,
const String &  _err,
const String &  _func,
const String &  _file,
int  _line 
)

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


Member Function Documentation

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

Field Documentation

int code

error code

See also:
CVStatus

Definition at line 131 of file core.hpp.

String err

error description

Definition at line 132 of file core.hpp.

String file

source file name where the error has occured

Definition at line 134 of file core.hpp.

String func

function name. Available only when the compiler supports getting it

Definition at line 133 of file core.hpp.

int line

line number in the source file where the error has occured

Definition at line 135 of file core.hpp.

String msg

the formatted error message

Definition at line 129 of file core.hpp.