GRASS Programmer's Manual  6.4.2(2012)
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.
int Vect_get_fatal_error (void)
 Get behaviour for fatal error.

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

 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines