|
gwenhywfar 5.10.1
|
This file contains the module for error handling. More...
#include <gwenhywfar/gwenhywfarapi.h>#include <gwenhywfar/types.h>
Go to the source code of this file.
Functions | |
Verbosity | |
Composing error messages. | |
| GWENHYWFAR_API const char * | GWEN_Error_SimpleToString (int i) |
| Returns a (very) short string describing the given GWEN error code, or "Unknown error" for unknown codes. More... | |
| GWENHYWFAR_API int | GWEN_Error_ToString (int c, char *buffer, int bsize) |
This file contains the module for error handling.
Definition in file error.h.
| GWENHYWFAR_API const char * GWEN_Error_SimpleToString | ( | int | i | ) |
Returns a (very) short string describing the given GWEN error code, or "Unknown error" for unknown codes.
| i | The error code |
Definition at line 95 of file error.c.
References GWEN_ERROR_ABORTED, GWEN_ERROR_ALREADY_REGISTERED, GWEN_ERROR_BAD_ADDRESS, GWEN_ERROR_BAD_ADDRESS_FAMILY, GWEN_ERROR_BAD_SIZE, GWEN_ERROR_BAD_SOCKETTYPE, GWEN_ERROR_BROKEN_PIPE, GWEN_ERROR_BUFFER_OVERFLOW, GWEN_ERROR_CLOSE, GWEN_ERROR_COULD_NOT_LOAD, GWEN_ERROR_COULD_NOT_RESOLVE, GWEN_ERROR_DECRYPT, GWEN_ERROR_ENCRYPT, GWEN_ERROR_EOF, GWEN_ERROR_GENERIC, GWEN_ERROR_HOST_NOT_FOUND, GWEN_ERROR_IN_PROGRESS, GWEN_ERROR_INTERRUPTED, GWEN_ERROR_MEMORY_FULL, GWEN_ERROR_NO_ADDRESS, GWEN_ERROR_NO_DATA, GWEN_ERROR_NO_RECOVERY, GWEN_ERROR_NOT_AVAILABLE, GWEN_ERROR_NOT_FOUND, GWEN_ERROR_NOT_OPEN, GWEN_ERROR_NOT_REGISTERED, GWEN_ERROR_NOT_SUPPORTED, GWEN_ERROR_PARTIAL, GWEN_ERROR_READ, GWEN_ERROR_SIGN, GWEN_ERROR_SSL, GWEN_ERROR_STARTUP, GWEN_ERROR_TIMEOUT, GWEN_ERROR_TRY_AGAIN, GWEN_ERROR_UNKNOWN_DNS_ERROR, GWEN_ERROR_VERIFY, GWEN_ERROR_WRITE, GWEN_SUCCESS, and I18N.
Referenced by GWEN_Error_ToString().

| GWENHYWFAR_API int GWEN_Error_ToString | ( | int | c, |
| char * | buffer, | ||
| int | bsize | ||
| ) |
Dumps the string corresponding to the given erro code.
| c | error code |
| buffer | pointer to a buffer to receive the message |
| bsize | size of that buffer in bytes |
Definition at line 78 of file error.c.
References GWEN_Error_SimpleToString().
