1 | /* |
2 | * PROGRAM: JRD Access Method |
3 | * MODULE: err_proto.h |
4 | * DESCRIPTION: Prototype header file for err.cpp |
5 | * |
6 | * The contents of this file are subject to the Interbase Public |
7 | * License Version 1.0 (the "License"); you may not use this file |
8 | * except in compliance with the License. You may obtain a copy |
9 | * of the License at http://www.Inprise.com/IPL.html |
10 | * |
11 | * Software distributed under the License is distributed on an |
12 | * "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express |
13 | * or implied. See the License for the specific language governing |
14 | * rights and limitations under the License. |
15 | * |
16 | * The Original Code was created by Inprise Corporation |
17 | * and its predecessors. Portions created by Inprise Corporation are |
18 | * Copyright (C) Inprise Corporation. |
19 | * |
20 | * All Rights Reserved. |
21 | * Contributor(s): ______________________________________. |
22 | */ |
23 | |
24 | #ifndef JRD_ERR_PROTO_H |
25 | #define JRD_ERR_PROTO_H |
26 | |
27 | #include "fb_exception.h" |
28 | #include "../common/classes/fb_string.h" |
29 | #include "../common/classes/MetaName.h" |
30 | #include "../common/StatusArg.h" |
31 | #include "../jrd/status.h" |
32 | |
33 | namespace Jrd { |
34 | |
35 | // Index error types |
36 | |
37 | enum idx_e { |
38 | idx_e_ok = 0, |
39 | idx_e_duplicate, |
40 | idx_e_keytoobig, |
41 | idx_e_conversion, |
42 | idx_e_foreign_target_doesnt_exist, |
43 | idx_e_foreign_references_present |
44 | }; |
45 | |
46 | } //namespace Jrd |
47 | |
48 | bool ERR_post_warning(const Firebird::Arg::StatusVector& v); |
49 | void ERR_assert(const TEXT*, int); |
50 | void ERR_bugcheck(int, const TEXT* = NULL, int = 0); |
51 | void ERR_bugcheck_msg(const TEXT*); |
52 | void ERR_corrupt(int); |
53 | void ERR_error(int); |
54 | void ERR_post(const Firebird::Arg::StatusVector& v); |
55 | void ERR_post_nothrow(const Firebird::Arg::StatusVector& v); |
56 | void ERR_punt(); |
57 | void ERR_warning(const Firebird::Arg::StatusVector& v); |
58 | void ERR_log(int, int, const TEXT*); |
59 | void ERR_make_permanent(ISC_STATUS* s); |
60 | void ERR_make_permanent(Firebird::Arg::StatusVector& v); |
61 | void ERR_append_status(ISC_STATUS*, const Firebird::Arg::StatusVector& v); |
62 | void ERR_build_status(ISC_STATUS*, const Firebird::Arg::StatusVector& v); |
63 | |
64 | #endif // JRD_ERR_PROTO_H |
65 | |