fixed NoSuchMethodError

git-svn-id: https://public-transport-enabler.googlecode.com/svn/trunk@502 0924bc21-9374-b0fa-ee44-9ff1593b38f0
This commit is contained in:
andreas.schildbach@gmail.com 2011-02-22 13:25:49 +00:00
parent 725cef10c9
commit 24c5dbe58c
2 changed files with 53 additions and 4 deletions

View file

@ -51,6 +51,7 @@ import de.schildbach.pte.dto.QueryConnectionsResult.Status;
import de.schildbach.pte.dto.QueryDeparturesResult;
import de.schildbach.pte.dto.StationDepartures;
import de.schildbach.pte.dto.Stop;
import de.schildbach.pte.exception.ParserException;
import de.schildbach.pte.util.Color;
import de.schildbach.pte.util.ParserUtils;
import de.schildbach.pte.util.XmlPullUtil;
@ -130,7 +131,7 @@ public abstract class AbstractEfaProvider implements NetworkProvider
}
catch (final XmlPullParserException x)
{
throw new IOException(x);
throw new ParserException(x);
}
finally
{
@ -369,7 +370,7 @@ public abstract class AbstractEfaProvider implements NetworkProvider
}
catch (final XmlPullParserException x)
{
throw new IOException(x);
throw new ParserException(x);
}
finally
{
@ -1028,7 +1029,7 @@ public abstract class AbstractEfaProvider implements NetworkProvider
}
catch (final XmlPullParserException x)
{
throw new IOException(x);
throw new ParserException(x);
}
finally
{
@ -1448,7 +1449,7 @@ public abstract class AbstractEfaProvider implements NetworkProvider
}
catch (final XmlPullParserException x)
{
throw new IOException(x);
throw new ParserException(x);
}
}

View file

@ -0,0 +1,48 @@
/*
* Copyright 2010 the original author or authors.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program 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 General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package de.schildbach.pte.exception;
import java.io.IOException;
/**
* @author Andreas Schildbach
*/
public class ParserException extends IOException
{
public ParserException()
{
super();
}
public ParserException(final String message)
{
super(message);
}
public ParserException(final String message, final Throwable cause)
{
super(message);
super.initCause(cause);
}
public ParserException(final Throwable cause)
{
super(cause == null ? null : cause.toString());
super.initCause(cause);
}
}