00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025 package org.w3c.domts;
00026 import javax.xml.parsers.*;
00027 import java.lang.reflect.InvocationTargetException;
00028
00035 public class DOMTestIncompatibleException extends Exception {
00036 private final Throwable exception;
00037 private final DocumentBuilderSetting setting;
00038
00039
00044 public DOMTestIncompatibleException(Throwable ex,DocumentBuilderSetting setting) {
00045 exception = ex;
00046 this.setting = setting;
00047 }
00048
00049 public String toString() {
00050 if(exception != null) {
00051 return exception.toString();
00052 }
00053 if(setting != null) {
00054 return setting.toString();
00055 }
00056 return super.toString();
00057 }
00058
00059 }
00060