]> granicus.if.org Git - postgresql/blob - src/backend/utils/error/excid.c
Change Copyright from PostgreSQL, Inc to PostgreSQL Global Development Group.
[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.9 2001/01/24 19:43:15 momjian 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  * BadAllocSize
47  *              Indicates that an allocation request is of unreasonable size.
48  */
49 Exception       BadAllocSize = {"Too Large Allocation Request"};
50
51 /*
52  * ExhaustedMemory
53  *              Indicates an dynamic memory allocation failed.
54  */
55 Exception       ExhaustedMemory = {"Memory Allocation Failed"};
56
57 /*
58  * Unimplemented
59  *              Indicates a function call request requires unimplemented code.
60  */
61 Exception       Unimplemented = {"Unimplemented Functionality"};
62
63 Exception       CatalogFailure = {"Catalog failure"};           /* XXX inconsistent */
64 Exception       InternalError = {"Internal Error"}; /* XXX inconsistent */
65 Exception       SemanticError = {"Semantic Error"}; /* XXX inconsistent */
66 Exception       SystemError = {"System Error"};         /* XXX inconsistent */