Main Page | Modules | Class List | 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, int number)
 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, int *number)
 Gets details of n-th error stored in the error trace.

Detailed Description

Module: Exception module

Part of: Gandalf Library

Version:
1.11
Date:
2005/10/18 16:30:46
Author:
pm
Copyright: (c) 2000 Industrial Research Limited
Generated on Fri Mar 17 12:44:51 2006 by  doxygen 1.3.9.1