mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-09-14 13:59:48 +02:00
5c25d60244
* Portions Copyright (c) 1996-2000, PostgreSQL, Inc to all files copyright Regents of Berkeley. Man, that's a lot of files.
67 lines
2.0 KiB
C
67 lines
2.0 KiB
C
/*-------------------------------------------------------------------------
|
|
*
|
|
* excid.c
|
|
* POSTGRES known exception identifier code.
|
|
*
|
|
* Portions Copyright (c) 1996-2000, PostgreSQL, Inc
|
|
* Portions Copyright (c) 1994, Regents of the University of California
|
|
*
|
|
*
|
|
* IDENTIFICATION
|
|
* $Header: /cvsroot/pgsql/src/backend/utils/error/Attic/excid.c,v 1.8 2000/01/26 05:57:20 momjian Exp $
|
|
*
|
|
*-------------------------------------------------------------------------
|
|
*/
|
|
|
|
#include "postgres.h"
|
|
|
|
/*****************************************************************************
|
|
* Generic Recoverable Exceptions *
|
|
*****************************************************************************/
|
|
|
|
|
|
/*
|
|
* FailedAssertion
|
|
* Indicates an Assert(...) failed.
|
|
*/
|
|
Exception FailedAssertion = {"Failed Assertion"};
|
|
|
|
/*
|
|
* BadState
|
|
* Indicates a function call request is inconsistent with module state.
|
|
*/
|
|
Exception BadState = {"Bad State for Function Call"};
|
|
|
|
/*
|
|
* BadArg
|
|
* Indicates a function call argument or arguments is out-of-bounds.
|
|
*/
|
|
Exception BadArg = {"Bad Argument to Function Call"};
|
|
|
|
/*****************************************************************************
|
|
* Specific Recoverable Exceptions *
|
|
*****************************************************************************/
|
|
|
|
/*
|
|
* BadAllocSize
|
|
* Indicates that an allocation request is of unreasonable size.
|
|
*/
|
|
Exception BadAllocSize = {"Too Large Allocation Request"};
|
|
|
|
/*
|
|
* ExhaustedMemory
|
|
* Indicates an dynamic memory allocation failed.
|
|
*/
|
|
Exception ExhaustedMemory = {"Memory Allocation Failed"};
|
|
|
|
/*
|
|
* Unimplemented
|
|
* Indicates a function call request requires unimplemented code.
|
|
*/
|
|
Exception Unimplemented = {"Unimplemented Functionality"};
|
|
|
|
Exception CatalogFailure = {"Catalog failure"}; /* XXX inconsistent */
|
|
Exception InternalError = {"Internal Error"}; /* XXX inconsistent */
|
|
Exception SemanticError = {"Semantic Error"}; /* XXX inconsistent */
|
|
Exception SystemError = {"System Error"}; /* XXX inconsistent */
|