Error is the base class for all LiDAR SDK errors.
More...
#include <Error.h>
|
| ~Error (void) throw () |
|
| Error (const Error ©) throw () |
|
| Error (const char *file, const char *func, int line, int code) throw () |
| Construct an error exception. More...
|
|
const char * | filename (void) const throw () |
| Get the file name. More...
|
|
const char * | function (void) const throw () |
| Get the function name. More...
|
|
int | line (void) const throw () |
| Get the line number. More...
|
|
int | error (void) const throw () |
| Get the error code. More...
|
|
const char * | what (void) const throw () |
| Get the text description. More...
|
|
Error & | operator() (const char *fmt,...) throw () |
| Append more text the error discription. More...
|
|
Definition at line 31 of file Error.h.
Error::~Error |
( |
void |
| ) |
|
throw | ( | |
| ) | | |
Error::Error |
( |
const Error & |
copy | ) |
|
throw | ( | |
| ) | | |
Error::Error |
( |
const char * |
file, |
|
|
const char * |
func, |
|
|
int |
line, |
|
|
int |
code |
|
) |
| |
throw | ( | |
| ) | | |
- Parameters
-
file | the file name where the error occurred |
func | the function name where the error occurred |
line | the line number where the error occurred |
code | the error code |
int Error::error |
( |
void |
| ) |
const |
throw | ( | |
| ) | | |
This method returns the error code for the error.
const char* Error::filename |
( |
void |
| ) |
const |
throw | ( | |
| ) | | |
This method returns the file name where the error occurred.
const char* Error::function |
( |
void |
| ) |
const |
throw | ( | |
| ) | | |
This method returns the function name where the error occurred.
int Error::line |
( |
void |
| ) |
const |
throw | ( | |
| ) | | |
This method returns the line number where the error occurred.
Error& Error::operator() |
( |
const char * |
fmt, |
|
|
|
... |
|
) |
| |
throw | ( | |
| ) | | |
This method append text to the error discription. It uses the printf() format syntax.
const char* Error::what |
( |
void |
| ) |
const |
throw | ( | |
| ) | | |
This method returns a text discription of the error.
const char* Error::m_file |
|
protected |
const char* Error::m_func |
|
protected |
The documentation for this class was generated from the following file: