#include <error.h>
Public Attributes | |
ERRORMESSAGEPTR | msgptr |
int | typ |
char | type_name [16] |
|
Pointer to the function that returns a descriptive error message for a given error code (must be set by the caller). |
|
If the registration applied this field holds the number assigned to this code. The calling module is then guaranteed to have this code for itself (i.e. this number will not assigned to any other module). So when returning an ERRORCODE specific to the module you can use this number as the "type". |
|
This holds the name of the error type. It should be human readable and quite descriptive (like the "Socket" module will use "Socket" as a type name). This way you can alway resolve the number of a known error type by given its name. This field must be set by the caller. This string must be zero terminated (standard c-string). |