mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-17 18:39:50 +00:00
Use our own exception type for HTTP_NOT_FOUND, rather than reusing FileNotFoundException.
This commit is contained in:
parent
0999b3ba7f
commit
bff85b9f6c
3 changed files with 34 additions and 8 deletions
|
@ -0,0 +1,32 @@
|
|||
/*
|
||||
* Copyright 2014 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.Reader;
|
||||
import java.net.URL;
|
||||
|
||||
/**
|
||||
* @author Andreas Schildbach
|
||||
*/
|
||||
public class NotFoundException extends AbstractHttpException
|
||||
{
|
||||
public NotFoundException(final URL url, final Reader errorReader)
|
||||
{
|
||||
super(url, errorReader);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue