1 19 20 package org.netbeans.tax; 21 22 35 public class TreeException extends Exception { 36 37 38 private static final long serialVersionUID =1949769568282926780L; 39 40 44 45 public TreeException (String msg, Exception exception) { 46 super (msg); 47 if (exception != null) { 48 initCause(exception); 49 } 50 } 51 52 53 56 public TreeException (String msg) { 57 this (msg, null); 58 } 59 60 61 64 public TreeException (Exception exc) { 65 this(exc.toString(), exc); 66 } 67 68 69 73 76 public Exception getException () { 77 return (Exception ) getCause(); 78 } 79 80 } 81 | Popular Tags |