1 22 23 package org.xquark.xquery.normalize; 24 25 import org.xquark.xquery.parser.XQueryException; 26 27 31 public class NormalizeException extends XQueryException { 33 35 36 public static final int NO_CODE = 0; 37 38 public static final int TODO1 = 1; 39 40 public static final int TODO2 = 2; 41 42 44 45 private int errorCode; 46 47 48 private java.lang.Throwable exception; 49 50 52 56 public NormalizeException(int code) { 57 this(code, "",null); 58 } 59 60 64 public NormalizeException(java.lang.String msg) { 65 this(NormalizeException.NO_CODE, msg, null); 66 } 67 68 73 public NormalizeException(int code, java.lang.String msg) { 74 this(code, msg, null); 75 } 76 77 82 public NormalizeException(java.lang.String msg, java.lang.Throwable exception) { 83 this(NormalizeException.NO_CODE, msg, exception); 84 } 85 86 92 public NormalizeException(int code, java.lang.String msg, java.lang.Throwable exception) { 93 super(msg); 94 this.errorCode = code; 95 this.exception = exception; 96 } 97 98 104 public NormalizeException(int code, java.lang.Throwable exception) { 105 super(exception.getMessage()); 106 this.errorCode = code; 107 this.exception = exception; 108 } 109 110 112 116 public int getCode() { 117 return this.errorCode; 118 } 119 120 124 public java.lang.Throwable getException() { 125 return this.exception; 126 } 127 } 128 | Popular Tags |