Functions

error.c File Reference

Vector library - error management. More...

#include <string.h>
#include <grass/gis.h>
#include <grass/Vect.h>
Include dependency graph for error.c:

Go to the source code of this file.

Functions

int Vect_set_fatal_error (int err)
 Set behaviour if fatal error occurs in some functions.
int Vect_get_fatal_error (void)
 Get behaviour for fatal error.

Detailed Description

Vector library - error management.

Higher level functions for reading/writing/manipulating vectors.

(C) 2001-2008 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:
Original author CERL, probably Dave Gerdes or Mike Higgins. Update to GRASS 5.7 Radim Blazek and David D. Gray.
Date:
2001-2008

Definition in file error.c.


Function Documentation

int Vect_get_fatal_error ( void   ) 

Get behaviour for fatal error.

Parameters:
 
Returns:
GV_FATAL_EXIT(default): print error message and exit,
GV_FATAL_PRINT: print error message and return error,
GV_FATAL_RETURN: return error

Definition at line 53 of file error.c.

Referenced by Vect__open_old(), and Vect_open_new().

int Vect_set_fatal_error ( int  err  ) 

Set behaviour if fatal error occurs in some functions.

  • GV_FATAL_EXIT(default): print error message and exit,
  • GV_FATAL_PRINT: print error message and return error,
  • GV_FATAL_RETURN: return error
Parameters:
err error type
Returns:
0 on success

Definition at line 38 of file error.c.

Referenced by Vect__open_old(), and Vect_open_new().