Main Page   Modules   Compound List   File List   Compound 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

Revision: Last edited: Author:

Copyright: (c) 2000 Industrial Research Limited


Generated on Mon Oct 13 16:14:41 2003 by doxygen1.3-rc1