GRASS Programmer's Manual  6.5.svn(2014)-r66266
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
lib/vector/Vlib/error.c File Reference
#include <string.h>
#include <grass/gis.h>
#include <grass/Vect.h>
Include dependency graph for lib/vector/Vlib/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. More...
 
int Vect_get_fatal_error (void)
 Get behaviour for fatal error. More...
 

Function Documentation

int Vect_get_fatal_error ( void  )

Get behaviour for fatal error.

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

Definition at line 53 of file lib/vector/Vlib/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
errerror type
Returns
0 on success

Definition at line 38 of file lib/vector/Vlib/error.c.

References err.

Referenced by Vect__open_old(), and Vect_open_new().