Destroyed the unnecessary NestableIOException.

git-svn-id: https://samskivert.googlecode.com/svn/trunk@1746 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
ray
2005-12-20 02:07:01 +00:00
parent 777a00bc4e
commit 4478f67e8b
2 changed files with 2 additions and 59 deletions
@@ -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 <code>NestableIOException</code> with specified
* nested <code>Throwable</code>.
*
* @param cause the exception or error that caused this exception to
* be thrown.
*/
public NestableIOException (Throwable cause)
{
initCause(cause);
}
/**
* Constructs a new <code>NestableIOException</code> with specified
* detail message and nested <code>Throwable</code>.
*
* @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);
}
}
@@ -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);
}
}