Main Page | Modules | Data Structures | Directories | File List | Data Fields | Globals | Related Pages

Error module

This module does all error handling. More...

Modules

 Simplified Error Codes

Defines

#define GWEN_ERROR_COULD_NOT_REGISTER   2
#define GWEN_ERROR_COULD_NOT_UNREGISTER   3
#define GWEN_ERROR_INVALID_BUFFERSIZE   4
#define GWEN_ERROR_SEVERITY_DEBUG   0
#define GWEN_ERROR_SEVERITY_ERR   3
#define GWEN_ERROR_SEVERITY_INFO   1
#define GWEN_ERROR_SEVERITY_WARN   2
#define GWEN_ERROR_TYPE_ERROR   0
#define GWEN_ERROR_UNSPECIFIED   1

Typedefs

typedef const char *(* GWEN_ERRORMESSAGEPTR )(int c)
typedef GWEN_ERRORTYPEREGISTRATIONFORM GWEN_ERRORTYPEREGISTRATIONFORM

Functions

GWENHYWFAR_API int GWEN_ErrorType_GetType (GWEN_ERRORTYPEREGISTRATIONFORM *f)

Detailed Description

This module does all error handling.

Author:
Martin Preuss<martin@libchipcard.de>
All errors are grouped into error types. There is no predefined error type, all modules, which want to take advantage of this module should register their own error type. When registering an error type, this module learns about the new error type:

Define Documentation

#define GWEN_ERROR_COULD_NOT_REGISTER   2
 

#define GWEN_ERROR_COULD_NOT_UNREGISTER   3
 

#define GWEN_ERROR_INVALID_BUFFERSIZE   4
 

#define GWEN_ERROR_SEVERITY_DEBUG   0
 

The error code is a debug level code.

#define GWEN_ERROR_SEVERITY_ERR   3
 

The error code is a error level code.

#define GWEN_ERROR_SEVERITY_INFO   1
 

The error code is a information level code.

#define GWEN_ERROR_SEVERITY_WARN   2
 

The error code is a warning level code.

#define GWEN_ERROR_TYPE_ERROR   0
 

This class is used for ERROR-related errors ;-)

#define GWEN_ERROR_UNSPECIFIED   1
 


Typedef Documentation

typedef const char*(* GWEN_ERRORMESSAGEPTR)(int c)
 

A function of this type returns a descriptive string for the given error. So it is supposed to translate a 16 bit error value into a human readable text (please note that this code is PART of a ERRORCODE, not the whole ERRORCODE itself !).

typedef struct GWEN_ERRORTYPEREGISTRATIONFORM GWEN_ERRORTYPEREGISTRATIONFORM
 


Function Documentation

GWENHYWFAR_API int GWEN_ErrorType_GetType GWEN_ERRORTYPEREGISTRATIONFORM f  ) 
 


Generated on Wed Oct 5 15:12:38 2005 for gwenhywfar by  doxygen 1.4.4