error.c File Reference

#include <string.h>
#include <stdlib.h>
#include <grass/dbmi.h>
#include <errno.h>

Include dependency graph for error.c:

Go to the source code of this file.

Functions

void db_on_error (void(*f)())
void db_set_error_who (char *me)
char * db_get_error_who ()
void db_error (char *s)
void db_protocol_error ()
void db_syserror (char *s)
int db_get_error_code ()
void db_memory_error ()
void db_procedure_not_implemented (char *name)
void db_noproc_error (procnum)
void db_clear_error ()
void db_print_error ()
void db_debug_on ()
void db_debug_off ()
void db_debug (char *s)
char * db_get_error_msg ()
void db_auto_print_errors (flag)
 toggles printing of DBMI error messages
void db_auto_print_protocol_errors (flag)


Function Documentation

void db_auto_print_errors ( flag   ) 

toggles printing of DBMI error messages

Returns:
void
Parameters:
flag 

Definition at line 279 of file error.c.

Referenced by db_driver().

void db_auto_print_protocol_errors ( flag   ) 

Definition at line 292 of file error.c.

Referenced by db_driver().

void db_clear_error (  ) 

Definition at line 186 of file error.c.

Referenced by db_dirent(), and db_driver().

void db_debug ( char *  s  ) 

Definition at line 253 of file error.c.

void db_debug_off (  ) 

Definition at line 241 of file error.c.

void db_debug_on (  ) 

Definition at line 229 of file error.c.

void db_error ( char *  s  ) 

int db_get_error_code (  ) 

char* db_get_error_msg (  ) 

Definition at line 267 of file error.c.

Referenced by db__send_failure().

char* db_get_error_who (  ) 

Definition at line 50 of file error.c.

void db_memory_error (  ) 

Definition at line 140 of file error.c.

References db_error().

Referenced by db_calloc(), db_malloc(), and db_realloc().

void db_noproc_error ( procnum   ) 

Definition at line 170 of file error.c.

References db_error(), and procnum.

Referenced by db__start_procedure_call().

void db_on_error ( void(*)()  f  ) 

Definition at line 23 of file error.c.

void db_print_error (  ) 

Definition at line 200 of file error.c.

Referenced by db_error().

void db_procedure_not_implemented ( char *  name  ) 

void db_protocol_error (  ) 

void db_set_error_who ( char *  me  ) 

Definition at line 36 of file error.c.

References db_store().

void db_syserror ( char *  s  ) 

Definition at line 101 of file error.c.

References db_error().

Referenced by db_dirent(), db_driver(), db_read_dbmscap(), and db_start_driver().


Generated on Sun Apr 6 17:31:51 2008 for GRASS by  doxygen 1.5.5