GRASS Programmer's Manual  6.5.svn(2014)-r66266
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
lib/db/dbmi_base/error.c File Reference
#include <string.h>
#include <stdlib.h>
#include <grass/dbmi.h>
#include <errno.h>
Include dependency graph for lib/db/dbmi_base/error.c:

Go to the source code of this file.

Functions

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

Function Documentation

void db_auto_print_errors ( int  flag)

Definition at line 260 of file lib/db/dbmi_base/error.c.

References tools::flag.

Referenced by db_driver(), and Vect_read_dblinks().

void db_auto_print_protocol_errors ( int  flag)

Definition at line 272 of file lib/db/dbmi_base/error.c.

References tools::flag.

Referenced by db_driver().

void db_clear_error ( void  )

Definition at line 172 of file lib/db/dbmi_base/error.c.

References errno.

Referenced by db_dirent(), and db_driver().

void db_debug ( const char *  s)

Definition at line 237 of file lib/db/dbmi_base/error.c.

void db_debug_off ( void  )

Definition at line 226 of file lib/db/dbmi_base/error.c.

void db_debug_on ( void  )

Definition at line 215 of file lib/db/dbmi_base/error.c.

const char* db_get_error_msg ( void  )

Definition at line 249 of file lib/db/dbmi_base/error.c.

References NULL.

Referenced by db__send_failure(), and submit().

const char* db_get_error_who ( void  )

Definition at line 46 of file lib/db/dbmi_base/error.c.

void db_memory_error ( void  )

Definition at line 130 of file lib/db/dbmi_base/error.c.

References db_error().

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

void db_noproc_error ( procnum  )

Definition at line 157 of file lib/db/dbmi_base/error.c.

References db_error(), wxnviz::msg, procnum, and sprintf().

Referenced by db__start_procedure_call().

void db_on_error ( void(*)(const char *)  f)

Definition at line 22 of file lib/db/dbmi_base/error.c.

void db_print_error ( void  )

Definition at line 185 of file lib/db/dbmi_base/error.c.

References buf, and sprintf().

Referenced by db_error().

void db_set_error_who ( const char *  me)

Definition at line 33 of file lib/db/dbmi_base/error.c.

References db_free(), and db_store().

void db_syserror ( const char *  s)

Definition at line 93 of file lib/db/dbmi_base/error.c.

References db_error(), errno, wxnviz::msg, and sprintf().

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