summaryrefslogtreecommitdiff
path: root/src/include/util_ErrorCodes.h
blob: c479235f0eb5eda6d6c5751f7bf484a35d2975e8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
/* util_ErrorCodes.h -- header for Util_* error codes */
/* $Id$ */

/*@@
  @file		util_ErrorCodes.h
  @header	util_ErrorCodes.h
  @version	$Header$
  @date		Wed Nov  7 16:16:08 CET 2001
  @author	Jonathan Thornburg <jthorn@aei.mpg.de>
  @desc
	This header defines the error codes returned by Util_* functions.
  @@*/

#ifndef _UTIL_ERRORCODES_H_
#define _UTIL_ERRORCODES_H_	1	/* define to 1 is Cactus standard */
					/* n.b. usual standard is empty defn! */

/******************************************************************************/

/*
 * These are generic error codes, used by multiple Util_*() functions.
 * They are between -1 and -99 inclusive.  (All Cactus error codes are
 * -ve integers.)
 */

/*@@
  @defines	UTIL_ERROR_NO_MEMORY
  @desc		error return code: unable to allocate memory
  @@*/
#define UTIL_ERROR_NO_MEMORY	(-1)

/*@@
  @defines	UTIL_ERROR_BAD_HANDLE
  @desc		error return code: handle is invalid
  @@*/
#define UTIL_ERROR_BAD_HANDLE	(-2)

/*@@
  @defines	UTIL_ERROR_BAD_INPUT
  @desc		error return code: input is invalid
  @@*/
#define UTIL_ERROR_BAD_INPUT	(-3)

/******************************************************************************/

#endif	/* _UTIL_ERRORCODES_H_ */