1 19 20 package de.gulden.util.xml; 21 22 import java.io.IOException ; 23 import java.util.*; 24 import org.w3c.dom.Element ; 25 26 32 public class XMLException extends IOException { 33 34 38 41 protected Element element; 42 43 46 protected Throwable wrappedThrowable; 47 48 49 53 56 public XMLException() { 57 super(); 58 element=null; 59 } 60 61 64 public XMLException(String msg) { 65 this(msg,(Element )null); 66 } 67 68 71 public XMLException(String msg, Element element) { 72 super(msg); 73 this.element=element; 74 } 75 76 79 public XMLException(Throwable throwable) { 80 this("["+throwable.getClass().getName()+": "+throwable.getMessage()+"]",throwable); 81 } 82 83 86 public XMLException(String msg, Throwable throwable) { 87 this(msg); 88 setWrappedThrowable(throwable); 89 } 90 91 92 96 99 public Throwable getWrappedThrowable() { 100 return wrappedThrowable; 101 } 102 103 106 public void setWrappedThrowable(Throwable _wrappedThrowable) { 107 wrappedThrowable = _wrappedThrowable; 108 } 109 110 } | Popular Tags |