diff --git a/projects/samskivert/src/java/com/samskivert/io/NestableIOException.java b/projects/samskivert/src/java/com/samskivert/io/NestableIOException.java deleted file mode 100644 index 683d02d3..00000000 --- a/projects/samskivert/src/java/com/samskivert/io/NestableIOException.java +++ /dev/null @@ -1,56 +0,0 @@ -// -// $Id: NestableIOException.java,v 1.4 2004/02/25 13:16:05 mdb Exp $ -// -// samskivert library - useful routines for java programs -// Copyright (C) 2001 Michael Bayne -// -// This library is free software; you can redistribute it and/or modify it -// under the terms of the GNU Lesser General Public License as published -// by the Free Software Foundation; either version 2.1 of the License, or -// (at your option) any later version. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - -package com.samskivert.io; - -import java.io.IOException; - -/** - * A convenience class for creating IO exceptions that are caused by other - * exceptions. - */ -public class NestableIOException extends IOException -{ - /** - * Constructs a new NestableIOException with specified - * nested Throwable. - * - * @param cause the exception or error that caused this exception to - * be thrown. - */ - public NestableIOException (Throwable cause) - { - initCause(cause); - } - - /** - * Constructs a new NestableIOException with specified - * detail message and nested Throwable. - * - * @param msg the error message. - * @param cause the exception or error that caused this exception to - * be thrown. - */ - public NestableIOException (String msg, Throwable cause) - { - super(msg); - initCause(cause); - } -} diff --git a/projects/samskivert/src/java/com/samskivert/xml/SimpleParser.java b/projects/samskivert/src/java/com/samskivert/xml/SimpleParser.java index a32a736d..30a495fa 100644 --- a/projects/samskivert/src/java/com/samskivert/xml/SimpleParser.java +++ b/projects/samskivert/src/java/com/samskivert/xml/SimpleParser.java @@ -27,7 +27,6 @@ import org.xml.sax.*; import org.xml.sax.helpers.DefaultHandler; import com.samskivert.Log; -import com.samskivert.io.NestableIOException; /** * The simple parser class provides an extensible object that is @@ -81,10 +80,10 @@ public class SimpleParser extends DefaultHandler XMLUtil.parse(this, stream); } catch (ParserConfigurationException pce) { - throw new NestableIOException(pce); + throw (IOException) new IOException().initCause(pce); } catch (SAXException saxe) { - throw new NestableIOException(saxe); + throw (IOException) new IOException().initCause(saxe); } }