GRASS GIS 7 Programmer's Manual  7.5.svn(2017)-r71817
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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

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(), fclose(), G_free(), and NULL.

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

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().