KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > jonas > jtests > beans > relation > lcp > SIMPLECHILDException


1 package org.objectweb.jonas.jtests.beans.relation.lcp;
2
3
4
5 public class SIMPLECHILDException extends Exception JavaDoc {
6
7     // Variables
8
public static final int SYSTEM_EXCEPTION = 1;
9     public static final int APPLICATION_EXCEPTION = 2;
10     private int exception_level = 1;
11
12     public SIMPLECHILDException() {
13         super();
14     }
15
16     public SIMPLECHILDException(String JavaDoc e) {
17         super(e);
18     }
19
20     public SIMPLECHILDException(int ex_level) {
21         super();
22         exception_level = ex_level;
23     }
24
25     public SIMPLECHILDException(String JavaDoc e, int ex_level) {
26         super(e);
27         exception_level = ex_level;
28     }
29
30     // Methods
31
public int getExceptionLevel() {
32         return exception_level;
33     }
34
35 }
36
Popular Tags