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