GRASS GIS 8 Programmer's Manual  8.5.0dev(2024)-66aae0a5a0
d_error.c File Reference

DBMI Library (driver) - error reporting. More...

#include <string.h>
#include <errno.h>
#include <grass/dbmi.h>
#include <grass/glocale.h>
Include dependency graph for d_error.c:

Go to the source code of this file.

Functions

void db_d_init_error (const char *name)
 Init error message for DB driver. More...
 
void db_d_append_error (const char *fmt,...)
 Append error message for DB driver. More...
 
void db_d_report_error (void)
 Report error message for DB driver. More...
 

Detailed Description

DBMI Library (driver) - error reporting.

Taken from DB drivers.

(C) 1999-2008, 2012 by the GRASS Development Team

This program is free software under the GNU General Public License (>=v2). Read the file COPYING that comes with GRASS for details.

Author
Joel Jones (CERL/UIUC)
Radim Blazek
Adopted for DBMI by Martin Landa landa.nosp@m..mar.nosp@m.tin@g.nosp@m.mail.nosp@m..com

Definition in file d_error.c.

Function Documentation

◆ db_d_append_error()

void db_d_append_error ( const char *  fmt,
  ... 
)

Append error message for DB driver.

Parameters
fmtformatted message

Definition at line 66 of file d_error.c.

References _, count, db_append_string(), G_calloc, G_fatal_error(), G_free(), NULL, and st.

◆ db_d_init_error()

void db_d_init_error ( const char *  name)

Init error message for DB driver.

Initialize prefix

Parameters
namedriver name (eg. "SQLite"))

Definition at line 47 of file d_error.c.

References db_init_string(), G_debug(), G_malloc, init(), name, st, and strcpy.

◆ db_d_report_error()

void db_d_report_error ( void  )

Report error message for DB driver.

Definition at line 94 of file d_error.c.

References db_append_string(), db_error(), db_get_string(), init(), and st.