KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > teamkonzept > lib > ErrorCodes


1 package com.teamkonzept.lib;
2
3 /**
4     This interface defines all errorcodes for Webman exceptions
5     The errorcodes are defined either by an analyzing tool or the programmer
6     Using the error code you can get the internationalized description of the error
7  * @author $Author: mischa $
8  * @version $Revision: 1.9 $
9 */

10 public interface ErrorCodes
11 {
12     /** undefined error - TKException is trying to get the cause */
13      int UNDEFINED = 0;
14         
15     // Dringlichkeitsklassifizierungen
16

17     /** must be corrected, before further work with WebMan */
18      int HIGH_SEVERITY = 1;
19     
20     /** can happen, but should not - default*/
21      int NORMAL_SEVERITY = 2;
22     
23     /** a user caused error */
24      int USER_SEVERITY = 3;
25     
26     /** Temporary Problem */
27      int TEMPORARY_SEVERITY = 4;
28         
29     /** Verschiedene Fehlerbereiche */
30     
31     
32     /** Database error */
33      int DATABASE = 1000;
34     
35     /** wrong input */
36      int INPUT = 2000;
37     
38     /** wrong configuration */
39      int CONFIGURATION = 3000;
40     
41     /** internal error */
42      int INTERNAL = 4000;
43     
44     /** runtime problems (environment) */
45      int RUNTIME = 5000;
46     
47     /** Error caused by the user */
48      int USER = 6000;
49     
50     /** Internal Errors */
51      int INVALID_EVENT = INTERNAL + 1;
52 }
53
Popular Tags