blob: 57040b00ab8b9552da7ad25149ab783119be52e3 [file] [log] [blame]
/*
* Copyright (c) 2015 Eike Stepper (Berlin, Germany) and others.
* This program and the accompanying materials are made
* available under the terms of the Eclipse Public License 2.0
* which is available at https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* Eike Stepper - initial API and implementation
*/
package org.eclipse.userstorage.util;
import java.io.Serializable;
import java.net.URI;
/**
* Signals that an HTTP Not Found exception has occurred (404 Not found).
*
* @author Eike Stepper
*/
public class NotFoundException extends ProtocolException
{
private static final long serialVersionUID = 1L;
/**
* Public constructor to make this exception {@link Serializable}.
*/
public NotFoundException()
{
}
/**
* Constructs this exception with the given parameters.
*
* @param method the HTTP method of the request that causes this exception.
* @param uri the URI of the request that causes this exception.
* @param protocolVersion the HTTP protocol version of the request that causes this exception.
* @param reasonPhrase the HTTP status reason phrase of the response that causes this exception.
*/
public NotFoundException(String method, URI uri, String protocolVersion, String reasonPhrase)
{
super(method, uri, protocolVersion, 404, reasonPhrase);
}
}