Main Page   Packages   Class Hierarchy   Compound List   File List   Compound Members  

DOMTestIncompatibleException.java

Go to the documentation of this file.
00001 /*
00002  * Copyright (c) 2001 World Wide Web Consortium,
00003  * (Massachusetts Institute of Technology, Institut National de
00004  * Recherche en Informatique et en Automatique, Keio University). All
00005  * Rights Reserved. This program is distributed under the W3C's Software
00006  * Intellectual Property License. This program is distributed in the
00007  * hope that it will be useful, but WITHOUT ANY WARRANTY; without even
00008  * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
00009  * PURPOSE.
00010  * See W3C License http://www.w3.org/Consortium/Legal/ for more details.
00011  */
00012 
00013   /*
00014  $Log: DOMTestIncompatibleException.java,v $
00015  Revision 1.2  2002/02/03 04:22:35  dom-ts-4
00016  DOM4J and Batik support added.
00017  Rework of parser settings
00018 
00019  Revision 1.1  2001/07/23 04:52:20  dom-ts-4
00020  Initial test running using JUnit.
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 

Generated on Thu Feb 14 19:46:03 2002 for DOM Level 1 Core Test Suite by doxygen1.2.13.1 written by Dimitri van Heesch, © 1997-2001