01: package com.teamkonzept.lib;
02:
03: /**
04: This interface defines all errorcodes for Webman exceptions
05: The errorcodes are defined either by an analyzing tool or the programmer
06: Using the error code you can get the internationalized description of the error
07: * @author $Author: mischa $
08: * @version $Revision: 1.9 $
09: */
10: public interface ErrorCodes {
11: /** undefined error - TKException is trying to get the cause */
12: int UNDEFINED = 0;
13:
14: // Dringlichkeitsklassifizierungen
15:
16: /** must be corrected, before further work with WebMan */
17: int HIGH_SEVERITY = 1;
18:
19: /** can happen, but should not - default*/
20: int NORMAL_SEVERITY = 2;
21:
22: /** a user caused error */
23: int USER_SEVERITY = 3;
24:
25: /** Temporary Problem */
26: int TEMPORARY_SEVERITY = 4;
27:
28: /** Verschiedene Fehlerbereiche */
29:
30: /** Database error */
31: int DATABASE = 1000;
32:
33: /** wrong input */
34: int INPUT = 2000;
35:
36: /** wrong configuration */
37: int CONFIGURATION = 3000;
38:
39: /** internal error */
40: int INTERNAL = 4000;
41:
42: /** runtime problems (environment) */
43: int RUNTIME = 5000;
44:
45: /** Error caused by the user */
46: int USER = 6000;
47:
48: /** Internal Errors */
49: int INVALID_EVENT = INTERNAL + 1;
50: }
|