KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sslexplorer > policyframework > PolicyException


1 package com.sslexplorer.policyframework;
2
3 import com.sslexplorer.core.CoreException;
4
5 /**
6  * Specialisation of {@link CoreException} for exceptions generate during
7  * use of the policy framework.
8  *
9  * @author Brett Smith <a HREF="mailto: brett@3sp.com">&lt;brett@3sp.com&gt;</a>
10  */

11 public class PolicyException extends CoreException {
12     
13     /**
14      * General internal error
15      */

16     public final static int INTERNAL_ERROR = 1;
17     
18     /**
19      * Error category
20      */

21     public final static String JavaDoc ERROR_CATEGORY = "policyframework";
22
23     /**
24      * Constructor.
25      *
26      * @param code
27      */

28     public PolicyException(int code) {
29         super(code, ERROR_CATEGORY);
30     }
31
32     /**
33      * Constructor.
34      *
35      * @param code
36      * @param message
37      * @param cause
38      */

39     public PolicyException(int code, String JavaDoc message, Throwable JavaDoc cause) {
40         super(code, ERROR_CATEGORY, message, cause);
41     }
42
43     /**
44      * Constructor.
45      *
46      * @param code
47      * @param message
48      */

49     public PolicyException(int code, String JavaDoc message) {
50         super(code, ERROR_CATEGORY, message);
51     }
52
53     /**
54      * Constructor.
55      *
56      * @param code
57      * @param cause
58      */

59     public PolicyException(int code, Throwable JavaDoc cause) {
60         super(code, ERROR_CATEGORY, cause);
61     }
62 }
63
Popular Tags