Error reporting functions shall be used to create log entries in the event errors are detected. The messages shall give enough information to allow the user to know where the error has occurred and the type of error detected.
Definition in file psError.h.
#include <stdio.h>
#include <stdbool.h>
#include <stdarg.h>
#include "psErrorCodes.h"
Include dependency graph for psError.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.
Functions | |
| psErr * | psErrorGet (psS32 which) |
| Get a error from the error stack. | |
| psErr * | psErrorLast (void) |
| Get last error put on the error stack. | |
| void | psErrorClear (void) |
| Clears the error stack. | |
| unsigned int | psErrorGetStackSize () |
| Get the error stack depth. | |
| void | psErrorStackPrint (FILE *fd, const char *format,...) |
| Prints error stack to specified open file descriptor. | |
| void | psErrorStackPrintV (FILE *fd, const char *format, va_list va) |
| Prints error stack to specified open file descriptor. | |
| psErrorCode | psError (psErrorCode code, psBool new, const char *fmt,...) |
| Reports an error message to the logging facility. | |
| void | psWarning (const char *fmt,...) |
| Logs a warning message. | |
| psErr * | psErrAlloc (const char *name, psErrorCode code, const char *msg) |
| Create a new psErr struct. | |
1.4.2