OSError extends Error by using errno or GetLastError() to build the text description of the error.
#include <Error.h>
|
| OSError (const char *file, const char *func, int line) throw () |
| Construct an OS error exception. More...
|
|
| ~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 102 of file Error.h.
OSError::OSError |
( |
const char * |
file, |
|
|
const char * |
func, |
|
|
int |
line |
|
) |
| |
throw | ( | |
| ) | | |
This constructor looks at errno or GetLastError() to build the text description.
- 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 |
The documentation for this class was generated from the following file: