]> granicus.if.org Git - postgresql/blob - src/backend/utils/error/excid.c
Further work on elog cleanup: fix some bogosities in elog's logic about
[postgresql] / src / backend / utils / error / excid.c
1 /*-------------------------------------------------------------------------
2  *
3  * excid.c
4  *        POSTGRES known exception identifier code.
5  *
6  * Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
7  * Portions Copyright (c) 1994, Regents of the University of California
8  *
9  *
10  * IDENTIFICATION
11  *        $Header: /cvsroot/pgsql/src/backend/utils/error/Attic/excid.c,v 1.10 2001/02/06 01:53:53 tgl Exp $
12  *
13  *-------------------------------------------------------------------------
14  */
15
16 #include "postgres.h"
17
18 /*****************************************************************************
19  *       Generic Recoverable Exceptions                                                                                  *
20  *****************************************************************************/
21
22
23 /*
24  * FailedAssertion
25  *              Indicates an Assert(...) failed.
26  */
27 Exception       FailedAssertion = {"Failed Assertion"};
28
29 /*
30  * BadState
31  *              Indicates a function call request is inconsistent with module state.
32  */
33 Exception       BadState = {"Bad State for Function Call"};
34
35 /*
36  * BadArg
37  *              Indicates a function call argument or arguments is out-of-bounds.
38  */
39 Exception       BadArg = {"Bad Argument to Function Call"};
40
41 /*****************************************************************************
42  *       Specific Recoverable Exceptions                                                                                 *
43  *****************************************************************************/
44
45 /*
46  * Unimplemented
47  *              Indicates a function call request requires unimplemented code.
48  */
49 Exception       Unimplemented = {"Unimplemented Functionality"};
50
51 Exception       CatalogFailure = {"Catalog failure"};           /* XXX inconsistent */
52 Exception       InternalError = {"Internal Error"}; /* XXX inconsistent */
53 Exception       SemanticError = {"Semantic Error"}; /* XXX inconsistent */
54 Exception       SystemError = {"System Error"};         /* XXX inconsistent */