blob: 151c238030afc8e4f391b10bac6c5c0da7ace816 [file] [log] [blame]
/*
* Copyright (c) 2015 Eike Stepper (Berlin, Germany) and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* 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);
}
}