1 /**
2 * AUTOHIT 2003
3 * Copyright Erich P Gatejen (c) 1989,1997,2003,2004
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or (at
8 * your option) any later version.
9 * This program is distributed in the hope that it will be useful, but
10 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
11 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
12 * more details.
13 *
14 * You should have received a copy of the GNU General Public License along
15 * with this program; if not, write to the Free Software Foundation, Inc.,
16 * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 *
18 * Additional license information can be found in the documentation.
19 * @author Erich P Gatejen
20 */
21 package autohit.common;
22
23 /**
24 * Standard error codes
25 *
26 * @author Erich P. Gatejen
27 * @version 1.0
28 * <i>Version History</i>
29 * <code>EPG - Initial - 1May03<br>
30 * EPG - Change scheme to make more sense of faults - 19jul03</code>
31 *
32 */
33 public interface AutohitErrorCodes {
34
35 /**
36 * Numeric lower bounderies.
37 * The top is is 9999 because the log formatters assume it will be 4 characters.
38 * However, there is no logic reason not to go beyond.
39 */
40 public final static int FLOOR_NUMERIC = 0;
41 public final static int INFORMATIONAL = 100;
42 public final static int WARNING = 1000;
43 public final static int ERROR = 2000;
44 public final static int FAULT = 4000;
45 public final static int PANIC = 8000;
46 public final static int TOP_NUMERIC = 9999;
47
48 /**
49 * EVENTS and CODES. They share number space.
50 */
51 public final static int CODE_NONE = FLOOR_NUMERIC;
52
53 // 100 =<INFORMATIONAL < 1000
54 public final static int CODE_DEFAULT = 100;
55 public final static int CODE_DEBUGGING = 101;
56 public final static int CODE_DEBUGGING_CORE = 102;
57 public final static int CODE_DEBUGGING_CALLS = 103;
58 public final static int CODE_DEBUGGING_MODULES = 104;
59 public final static int CODE_DEBUGGING_PUBLIC = 105;
60 public final static int CODE_DEBUGGING_SERVICES = 106;
61 public final static int CODE_DEBUGGING_SYSTEM = 107;
62 public final static int CODE_VM_DONE = 125;
63 public final static int CODE_SERVER_DONE = 130;
64 public final static int CODE_INFORMATIONAL_OK = 150;
65 public final static int CODE_INFORMATIONAL_OK_VERBOSE = 160;
66 public final static int CODE_MODULE_REPORTED_INFO_OK = 175;
67
68 // EVENTS 200-299 are good. 300-399 bad
69 public final static int EVENT_COMMAND_ACCEPTED = 200;
70 public final static int EVENT_COMMAND_COMPLELTED = 210;
71 public final static int EVENT_COMMAND_PARTIAL_RESULTS = 220;
72 public final static int EVENT_COMMAND_FINAL_RESULTS = 220;
73
74 public final static int EVENT_COMMAND_REJECTED = 300;
75 public final static int EVENT_COMMAND_FAILED = 350;
76 public final static int EVENT_COMMAND_FAULTED = 375;
77 public final static int EVENT_COMMAND_PANICED = 399;
78
79 // USER SPACE 500-999
80 public final static int CODE_USER_INFO_FLOOR = 500;
81 public final static int CODE_USER_INFO_TOP = 999;
82
83 // 1000 =< WARNING < 2000
84 public final static int CODE_DEFAULT_WARNING = 1000;
85 public final static int CODE_COMPILE_WARNING = 1010;
86 public final static int CODE_VM_INSTRUCTION_WARNING = 1100;
87 public final static int CODE_MODULE_REPORTED_WARNING = 1500;
88
89 // 2000 =< ERROR < 4000
90 public final static int CODE_DEFAULT_ERROR = 2000;
91 public final static int CODE_COMPILE_ERROR = 2010;
92 public final static int CODE_COMPILE_ABORT = 2011;
93 public final static int CODE_PROGRAM_ERROR = 2200;
94 public final static int CODE_PROGRAM_DIVIDEBYZERO = 2201;
95
96 public final static int CODE_SERVICE_GENERIC_ERROR = 2300;
97 public final static int CODE_SYSTEM_GENERIC_ERROR = 2350;
98 public final static int CODE_SYSTEM_TELLIO_BROKEN_PROTOCOL = 2360;
99
100 public final static int CODE_VM_GENERIC_ERROR = 2400; // VM
101 public final static int CODE_VM_INSTRUCTION_ERROR = 2401;
102 public final static int CODE_VM_INSTRUCTION_ABORT = 2402;
103 public final static int CODE_VM_VARIABLE_TYPE_MISMATCH_ERROR = 2425;
104 public final static int CODE_VM_PROCESSOR_ERROR = 2430;
105 public final static int CODE_VM_PROCESSOR_ERROR_UNBOUNDED = 2431;
106 public final static int CODE_VM_PROCESSOR_ERROR_NOTFOUND = 2432;
107
108 public final static int CODE_SERVER_ERROR = 2500;
109 public final static int CODE_SERVER_IO_ERROR = 2510;
110
111 public final static int CODE_COMMAND_ERROR = 2700;
112 public final static int CODE_COMMAND_UNKNOWN = 2701;
113
114 public final static int CODE_CHANNEL_ERROR = 2800;
115 public final static int CODE_CHANNEL_BAD_PRIORITY_LEVEL_ERROR = 2810;
116 public final static int CODE_CHANNEL_DRAIN_REQUIRES_ID_ERROR = 2812;
117 public final static int CODE_CHANNEL_ALREADY_EXISTS_ERROR = 2820;
118 public final static int CODE_CHANNEL_DOESNT_EXIST_ERROR = 2822;
119 public final static int CODE_CHANNEL_INJECTOR_INVALID_ERROR = 2830;
120 public final static int CODE_CHANNEL_DRAIN_INVALID_ERROR = 2832;
121
122 public final static int CODE_CONFIGURATION_ERROR = 3000;
123
124 public final static int CODE_CALL_ERROR = 3100;
125 public final static int CODE_CALL_REPORTED_ERROR = 3110;
126 public final static int CODE_CALL_PROGRAM_ERROR = 3300;
127 public final static int CODE_CALL_PUBLIC_ERROR = 3300;
128 public final static int TOP_CODE_CALL_ERROR = 3499;
129
130 public final static int CODE_UNIVERSE_ERROR = 3500;
131 public final static int CODE_OBJECT_DOES_NOT_EXIST = 3550;
132 public final static int TOP_CODE_UNIVERSE_ERROR = 3599;
133
134 public final static int CODE_MODULE_REPORTED_ERROR = 3800;
135
136 // 4000 =< FAULT < 8000
137 public final static int CODE_DEFAULT_FAULT = 4000;
138 public final static int CODE_SW_DETECTED_FAULT = 4100;
139 public final static int CODE_COMMAND_FAULT = 4200;
140 public final static int CODE_COMMAND_REGISTRY_FAULT = 4210;
141 public final static int CODE_COMMAND_METHOD_NOT_SUPPORTED = 4220;
142 public final static int CODE_COMPILE_CONFIGURATION_FAULT = 4500;
143
144 public final static int CODE_SERVICE_GENERAL_FAULT = 4800;
145 public final static int CODE_SERVICE_STARTUP_FAULT = 4810;
146 public final static int CODE_SERVICE_INTENTIONAL_HALT = 4820;
147
148 public final static int CODE_VM_GENERAL_FAULT = 5000;
149 public final static int CODE_VM_INSTRUCTION_FAULT = 5001;
150 public final static int CODE_VM_ROUTINE_BREAKING_FAULT = 5002;
151 public static final int CODE_VM_INVALID_INSTRUCTION_FAULT = 5010;
152 public static final int CODE_VM_VARIABLE_NOT_DEFINED_FAULT = 5020;
153 public static final int CODE_VM_PREPARE_FAULT = 5100;
154 public static final int CODE_VM_EXEC_DOES_NOT_EXIST_FAULT = 5200;
155 public static final int CODE_VM_SUBSYSTEM_FAULT = 5500;
156 public static final int CODE_VM_CORE_GENERAL_FAULT = 5510;
157 public static final int CODE_VM_CORE_DOESNT_EXIST_FAULT = 5512;
158 public static final int CODE_VM_CORE_FAILED_STORE_FAULT = 5514;
159 public static final int CODE_VM_CORE_FAILED_RETRIEVAL_FAULT = 5516;
160 public static final int CODE_VM_CORE_FAILED_CONTROL_FAULT = 5518;
161 public static final int CODE_VM_OBJECT_LOCKED_FAULT = 5520;
162 public static final int CODE_VM_PROCESSOR_FAULT = 5600;
163 public static final int CODE_VM_CALL_FAULT = 5800;
164 public static final int CODE_VM_EXEC_FAULT = 5900;
165 public static final int CODE_VM_INTENTIONAL_FAULT = 5998;
166 public static final int CODE_VM_SOFTWARE_DETECTED_FAULT = 5999;
167
168 public final static int CODE_STARTUP_FAULT = 6000;
169 public final static int CODE_STARTUP_CONFIGURATION_FAULT = 6200;
170
171 public final static int CODE_SERVER_FAULT = 6300;
172 public final static int CODE_SERVER_BAD_CONTEXT_FAULT = 6310;
173
174 public final static int CODE_CHANNEL_FAULT = 6900;
175 public final static int CODE_CHANNEL_BAD_CONTROLLER_FAULT = 6902;
176 public final static int CODE_CHANNEL_DRAIN_GENERAL_FAULT = 6904;
177
178 public final static int CODE_CALL_FAULT = 7000;
179 public final static int CODE_CALL_REQUIRED_PARAM_MISSING_FAULT = 7005;
180 public final static int CODE_CALL_REQUIRED_PARAM_CLASSMISMATCH_FAULT = 7006;
181 public final static int CODE_CALL_PERSISTNOTFOUND_FAULT = 7007;
182 public final static int CODE_CALL_PERSISTMISMATCH_FAULT = 7008;
183 public final static int CODE_CALL_MODULE_CANT_LOAD_FAULT = 7010;
184 public final static int CODE_CALL_UNRECOVERABLE_FAULT = 7020;
185 public final static int CODE_CALL_INTENTIONAL_FAULT = 7499;
186
187 public final static int CODE_MODULE_FAULT = 7500;
188
189 // 8000 =< PANIC < 9999
190 public final static int CODE_DEFAULT_PANIC = 8000;
191 public final static int CODE_VM_PANIC = 8200;
192 public final static int CODE_SERVER_PANIC = 8300;
193 public final static int CODE_SERVICE_PANIC = 8400;
194 public final static int CODE_STARTUP_ABORT = 8500;
195 public final static int CODE_CHANNEL_PANIC = 8900;
196 public final static int CODE_CHANNEL_INTERRUPTED = 8901;
197 public final static int CODE_CATASTROPHIC_FRAMEWORK_FAULT= 9000;
198
199
200 }
|