GRASS GIS 7 Programmer's Manual  7.9.dev(2021)-e5379bbd7
d_error.c File Reference

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

#include <string.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_free(), and NULL.

◆ 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, and init().

◆ db_d_report_error()

void db_d_report_error ( void  )

Report error message for DB driver.

Definition at line 90 of file d_error.c.

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