fdhwlib  2.0.25
MicroEnableError Class Reference

#include <MicroEnableError.h>

List of all members.

Public Member Functions

Private Attributes


Detailed Description

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:

  • Silicon Software: microEnable. Benutzerhandbuch Version 1.3, August 1999.

Definition at line 38 of file MicroEnableError.h.


Constructor & Destructor Documentation

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]

Definition at line 71 of file MicroEnableError.h.

References err.

                        : runtime_error(op)
{

 fprintf(fdebug,"mE: %d %s failed\n", err, op);
  this->err = err;

}

Member Function Documentation

int MicroEnableError::getNr ( ) [inline]

Return the error code.

Definition at line 80 of file MicroEnableError.h.

References err.

                                   {
  return(this->err);
}

Member Data Documentation

int MicroEnableError::err [private]

Definition at line 55 of file MicroEnableError.h.

Referenced by getNr(), and MicroEnableError().


The documentation for this class was generated from the following file: