2001-05-23 15:26:42 +02:00
|
|
|
/*
|
|
|
|
* PROGRAM: JRD Access Method
|
|
|
|
* MODULE: err_proto.h
|
|
|
|
* DESCRIPTION: Prototype header file for err.c
|
|
|
|
*
|
|
|
|
* The contents of this file are subject to the Interbase Public
|
|
|
|
* License Version 1.0 (the "License"); you may not use this file
|
|
|
|
* except in compliance with the License. You may obtain a copy
|
|
|
|
* of the License at http://www.Inprise.com/IPL.html
|
|
|
|
*
|
|
|
|
* Software distributed under the License is distributed on an
|
|
|
|
* "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express
|
|
|
|
* or implied. See the License for the specific language governing
|
|
|
|
* rights and limitations under the License.
|
|
|
|
*
|
|
|
|
* The Original Code was created by Inprise Corporation
|
|
|
|
* and its predecessors. Portions created by Inprise Corporation are
|
|
|
|
* Copyright (C) Inprise Corporation.
|
|
|
|
*
|
|
|
|
* All Rights Reserved.
|
|
|
|
* Contributor(s): ______________________________________.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef JRD_ERR_PROTO_H
|
|
|
|
#define JRD_ERR_PROTO_H
|
|
|
|
|
|
|
|
#ifndef REQUESTER
|
|
|
|
|
2001-12-24 03:51:06 +01:00
|
|
|
/* Index error types */
|
|
|
|
|
|
|
|
typedef enum idx_e {
|
|
|
|
idx_e_ok = 0,
|
|
|
|
idx_e_duplicate,
|
|
|
|
idx_e_keytoobig,
|
|
|
|
idx_e_conversion,
|
|
|
|
idx_e_foreign
|
|
|
|
} IDX_E;
|
|
|
|
|
2003-04-10 08:49:16 +02:00
|
|
|
BOOLEAN DLL_EXPORT ERR_post_warning(ISC_STATUS, ...);
|
2003-02-13 11:11:35 +01:00
|
|
|
void ERR_assert(const TEXT*, int);
|
2002-10-29 17:27:47 +01:00
|
|
|
void DLL_EXPORT ERR_bugcheck(int);
|
2003-02-13 11:11:35 +01:00
|
|
|
void DLL_EXPORT ERR_bugcheck_msg(const TEXT*);
|
2002-10-29 17:27:47 +01:00
|
|
|
void DLL_EXPORT ERR_corrupt(int);
|
2002-11-21 00:18:16 +01:00
|
|
|
void DLL_EXPORT ERR_duplicate_error(enum idx_e, struct jrd_rel*, USHORT);
|
2002-10-29 17:27:47 +01:00
|
|
|
void DLL_EXPORT ERR_error(int);
|
|
|
|
void DLL_EXPORT ERR_error_msg(const TEXT *);
|
2003-04-10 08:49:16 +02:00
|
|
|
void DLL_EXPORT ERR_post(ISC_STATUS, ...);
|
2002-10-29 17:27:47 +01:00
|
|
|
void DLL_EXPORT ERR_punt(void);
|
2003-04-10 08:49:16 +02:00
|
|
|
void DLL_EXPORT ERR_warning(ISC_STATUS, ...);
|
2003-02-13 11:11:35 +01:00
|
|
|
void DLL_EXPORT ERR_log(int, int, const TEXT *);
|
2001-07-12 07:46:06 +02:00
|
|
|
|
2001-05-23 15:26:42 +02:00
|
|
|
#endif /* REQUESTER */
|
|
|
|
|
2002-10-29 17:27:47 +01:00
|
|
|
const TEXT* DLL_EXPORT ERR_cstring(const TEXT*);
|
|
|
|
const TEXT* DLL_EXPORT ERR_string(const TEXT*, int);
|
|
|
|
|
2001-05-23 15:26:42 +02:00
|
|
|
#endif /* JRD_ERR_PROTO_H */
|