Error Class Reference
Error is the base class for all LiDAR SDK errors.
#include <Error.h>
List of all members.
Public Member Functions |
| | ~Error (void) throw () |
| | Error (const Error ©) throw () |
| | Error (const char *file, const char *func, int line, int code) throw () |
| | Construct an error exception.
|
| const char * | filename (void) const throw () |
| | Get the file name.
|
| const char * | function (void) const throw () |
| | Get the function name.
|
| int | line (void) const throw () |
| | Get the line number.
|
| int | error (void) const throw () |
| | Get the error code.
|
| const char * | what (void) const throw () |
| | Get the text description.
|
| Error & | operator() (const char *fmt,...) throw () |
| | Append more text the error discription.
|
Protected Types |
| enum | { BUFFERSIZE = 1024
} |
Protected Attributes |
| char | m_desc [BUFFERSIZE] |
| const char * | m_file |
| const char * | m_func |
| int | m_line |
| int | m_error |
Detailed Description
Definition at line 31 of file Error.h.
Member Enumeration Documentation
anonymous enum [protected] |
- Enumerator:
-
Definition at line 90 of file Error.h.
Constructor & Destructor Documentation
| 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 |
Member Function Documentation
| 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.
Member Data Documentation
The documentation for this class was generated from the following file: