1 /*-------------------------------------------------------------------------
4 * POSTGRES known exception identifier code.
6 * Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
7 * Portions Copyright (c) 1994, Regents of the University of California
11 * $Header: /cvsroot/pgsql/src/backend/utils/error/Attic/excid.c,v 1.9 2001/01/24 19:43:15 momjian Exp $
13 *-------------------------------------------------------------------------
18 /*****************************************************************************
19 * Generic Recoverable Exceptions *
20 *****************************************************************************/
25 * Indicates an Assert(...) failed.
27 Exception FailedAssertion = {"Failed Assertion"};
31 * Indicates a function call request is inconsistent with module state.
33 Exception BadState = {"Bad State for Function Call"};
37 * Indicates a function call argument or arguments is out-of-bounds.
39 Exception BadArg = {"Bad Argument to Function Call"};
41 /*****************************************************************************
42 * Specific Recoverable Exceptions *
43 *****************************************************************************/
47 * Indicates that an allocation request is of unreasonable size.
49 Exception BadAllocSize = {"Too Large Allocation Request"};
53 * Indicates an dynamic memory allocation failed.
55 Exception ExhaustedMemory = {"Memory Allocation Failed"};
59 * Indicates a function call request requires unimplemented code.
61 Exception Unimplemented = {"Unimplemented Functionality"};
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 */