Documentation is available at RSErrorCodes.php
1 <?php
2 // RSErrorManager: A Pear Error Manager
3 // Copyright (C) 2003 Lukas Feiler
4 //
5 // This library is free software; you can redistribute it and/or
6 // modify it under the terms of the GNU Lesser General Public
7 // License as published by the Free Software Foundation; either
8 // version 2.1 of the License, or (at your option) any later version.
9 //
10 // This library is distributed in the hope that it will be useful,
11 // but WITHOUT ANY WARRANTY; without even the implied warranty of
12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 // Lesser General Public License for more details.
14 //
15 // You should have received a copy of the GNU Lesser General Public
16 // License along with this library; if not, write to the Free Software
17 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18
19 /**This file defines the error codes provided by RSErrorManager.
20 *
21 * The error codes used are within a range of -2500 to -2600.
22 *
23 * @package RSErrorManager
24 * @author Lukas Feiler <lukas.feiler@chello.at>
25 * @copyright Lukas Feiler 2003
26 * @filesource
27 */
28
29 /*
30 * Basic error codes that indicate that a variable had the wrong type:
31 * -------------------------------------------------------------------
32 */
33
34 /**The value was not an integer.
35 */
36 DEFINE('RSERROR_NOT_INTEGER', -2500);
37
38 /**The value was not a string.
39 */
40 DEFINE('RSERROR_NOT_STRING', -2501);
41
42 /**The value was not a boolean.
43 */
44 DEFINE('RSERROR_NOT_BOOLEAN', -2502);
45
46 /**The value was not an array.
47 */
48 DEFINE('RSERROR_NOT_ARRAY', -2503);
49
50 /**The value was not an object.
51 */
52 DEFINE('RSERROR_NOT_OBJECT', -2504);
53
54 /**The variable did not have the correct type.
55 */
56 DEFINE('RSERROR_WRONG_TYPE', -2505);
57
58 /**The variable was not set.
59 */
60 DEFINE('RSERROR_NOT_SET', -2506);
61
62
63
64 /*
65 * Error codes that indicate that a variable had the wrong format:
66 * ---------------------------------------------------------------
67 */
68
69 /**The string variable was too long.
70 */
71 DEFINE('RSERROR_TOO_LONG', -2507);
72
73 /**The string variabe was too short.
74 */
75 DEFINE('RSERROR_TOO_SHORT', -2508);
76
77 /**The integer variable was too high.
78 */
79 DEFINE('RSERROR_TOO_HIGH', -2509);
80
81 /**The integer variable was too low.
82 */
83 DEFINE('RSERROR_TOO_LOW', -2510);
84
85 /**The array contained no elements
86 */
87 DEFINE('RSERROR_ARRAY_ZERO_LENGTH', -2511);
88
89 /**A general error indicating that the variable was not in the correct format.
90 */
91 DEFINE('RSERROR_INVALID', -2512);
92
93
94 /*
95 * Database related error codes:
96 * -----------------------------
97 */
98
99 /**Is was tried to build a reference to a non-existing primary key.
100 */
101 DEFINE('RSERROR_INVALID_FOREIGN_KEY', -2513);
102
103
104 /*
105 * General error codes:
106 * --------------------
107 */
108
109 /**It was tried to instantinate a non-existing class.
110 */
111 DEFINE('RSERROR_NO_SUCH_CLASS', -2514);
112
113 /**It was tried to call a non-existing method.
114 */
115 DEFINE('RSERROR_NO_SUCH_METHOD', -2515);
116
117 /**It was tried to call a non-existing method.
118 */
119 DEFINE('RSERROR_NO_SUCH_FUNCTION', -2516);
120
121 /**It was tried to access a non-existing record.
122 */
123 DEFINE('RSERROR_NO_SUCH_RECORD', -2517);
124
125 /**A permission violation occurred.
126 */
127 DEFINE('RSERROR_PERMISSION_DENIED', -2518);
128
129 /**Indicates the the error is fatal.
130 */
131 DEFINE('RSERROR_FATAL_ERROR', -2519);
132
133 /**An unknown error.
134 */
135 DEFINE('RSERROR_UNKNOWN', -2520);
136
137
138
139
140 /*
141 * IO Error Codes:
142 * ---------------
143 */
144
145 /**File not found.
146 */
147 DEFINE('RSERROR_FILE_NOT_FOUND', -2520);
148 ?>
Documentation generated on Mon, 8 Dec 2003 13:13:05 +0100 by phpDocumentor 1.2.3