2001-05-23 15:26:42 +02:00
|
|
|
/*
|
|
|
|
* PROGRAM: JRD Access Method
|
|
|
|
* MODULE: err_proto.h
|
2003-11-05 10:02:33 +01:00
|
|
|
* DESCRIPTION: Prototype header file for err.cpp
|
2001-05-23 15:26:42 +02:00
|
|
|
*
|
|
|
|
* 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
|
|
|
|
|
2004-03-31 19:52:50 +02:00
|
|
|
#include "fb_string.h"
|
|
|
|
|
2001-05-23 15:26:42 +02:00
|
|
|
#ifndef REQUESTER
|
|
|
|
|
2004-03-20 15:57:40 +01:00
|
|
|
namespace Jrd {
|
|
|
|
|
2001-12-24 03:51:06 +01:00
|
|
|
/* Index error types */
|
|
|
|
|
2004-05-24 19:31:47 +02:00
|
|
|
enum idx_e {
|
2003-10-03 03:53:34 +02:00
|
|
|
idx_e_ok = 0,
|
|
|
|
idx_e_duplicate,
|
|
|
|
idx_e_keytoobig,
|
|
|
|
idx_e_conversion,
|
2004-09-01 00:29:59 +02:00
|
|
|
idx_e_foreign_target_doesnt_exist,
|
|
|
|
idx_e_foreign_references_present
|
2004-05-24 19:31:47 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
typedef idx_e IDX_E;
|
2001-12-24 03:51:06 +01:00
|
|
|
|
2004-03-31 19:52:50 +02:00
|
|
|
class jrd_rel;
|
2004-03-20 15:57:40 +01:00
|
|
|
} //namespace Jrd
|
|
|
|
|
2004-02-20 07:43:27 +01:00
|
|
|
bool ERR_post_warning(ISC_STATUS, ...);
|
2003-10-03 03:53:34 +02:00
|
|
|
void ERR_assert(const TEXT*, int);
|
|
|
|
void ERR_bugcheck(int);
|
|
|
|
void ERR_bugcheck_msg(const TEXT*);
|
|
|
|
void ERR_corrupt(int);
|
2004-07-07 05:43:20 +02:00
|
|
|
void ERR_duplicate_error(Jrd::idx_e, const Jrd::jrd_rel*, USHORT);
|
2003-10-03 03:53:34 +02:00
|
|
|
void ERR_error(int);
|
2003-11-05 10:02:33 +01:00
|
|
|
void ERR_error_msg(const TEXT*);
|
2003-10-03 03:53:34 +02:00
|
|
|
void ERR_post(ISC_STATUS, ...);
|
2004-08-06 17:26:55 +02:00
|
|
|
void ERR_post_nothrow(ISC_STATUS, ...);
|
2003-10-03 03:53:34 +02:00
|
|
|
void ERR_punt(void);
|
|
|
|
void ERR_warning(ISC_STATUS, ...);
|
2003-11-05 10:02:33 +01:00
|
|
|
void ERR_log(int, int, const TEXT*);
|
2001-07-12 07:46:06 +02:00
|
|
|
|
2001-05-23 15:26:42 +02:00
|
|
|
#endif /* REQUESTER */
|
|
|
|
|
2003-10-03 03:53:34 +02:00
|
|
|
const TEXT* ERR_cstring(const TEXT*);
|
2004-03-31 19:52:50 +02:00
|
|
|
const TEXT* ERR_cstring(const Firebird::string&);
|
2003-10-03 03:53:34 +02:00
|
|
|
const TEXT* ERR_string(const TEXT*, int);
|
2002-10-29 17:27:47 +01:00
|
|
|
|
2001-05-23 15:26:42 +02:00
|
|
|
#endif /* JRD_ERR_PROTO_H */
|
2003-11-05 10:02:33 +01:00
|
|
|
|