Main Page | Modules | Class List | Directories | File List | Class Members | File Members

gan_err.c File Reference

#include <stdio.h>
#include <gandalf/common/gan_err_trace.h>
#include <gandalf/common/gan_err.h>

Functions

Gan_ErrorReporterFunc gan_err_set_reporter (Gan_ErrorReporterFunc app_error_reporter)
 Installs an error reporter.
Gan_ErrorReporterFunc gan_err_get_reporter (void)
 Returns current error reporter.
int gan_err_register_fileline (const char *func_name, int err_code, const char *file_name, int line_number, const char *message)
 Registers occurence of an error.
void gan_err_report (void)
 Invokes current error reporter.
void gan_err_set_trace (Gan_TraceMode trace_mode)
 Enable or disable use of trace to store error details.
void gan_err_flush_trace (void)
 Flush all errors in trace.
int gan_err_get_error_count (void)
 Gets the number of errors in error trace.
int gan_err_get_error (int n, const char **func_name, int *err_code, const char **file_name, int *line_number, const char **message)
 Gets details of n-th error stored in the error trace.

Detailed Description

Module: Exception module

Part of: Gandalf Library

Version:
1.10
Date:
2004/08/25 12:36:39
Author:
pm
Copyright: (c) 2000 Industrial Research Limited
Generated on Sat May 21 23:52:49 2005 by  doxygen 1.4.3