fdhwlib
2.0.25
|
#include <MicroEnableError.h>
Exeption handling for errors returned by the microEnable interface.
Error code and/or message as specified from Silicon Software are displayed.
The error messages are send to the fdebug device. If it is desired to have a message on stdout this has to be printed in the catch block.
Error codes:
Definition at line 38 of file MicroEnableError.h.
MicroEnableError::MicroEnableError | ( | FILE * | fdebug, |
const char * | op | ||
) | [inline] |
Definition at line 60 of file MicroEnableError.h.
References err.
: runtime_error(op) { fprintf(fdebug,"mE: %s failed\n", op); this->err = -1; }
MicroEnableError::MicroEnableError | ( | FILE * | fdebug, |
const char * | op, | ||
int | err | ||
) | [inline] |
int MicroEnableError::getNr | ( | ) | [inline] |
Return the error code.
Definition at line 80 of file MicroEnableError.h.
References err.
{ return(this->err); }
int MicroEnableError::err [private] |
Definition at line 55 of file MicroEnableError.h.
Referenced by getNr(), and MicroEnableError().