org.archive.wayback.exception
Class BetterRequestException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.archive.wayback.exception.WaybackException
org.archive.wayback.exception.BetterRequestException
- All Implemented Interfaces:
- Serializable
public class BetterRequestException
- extends WaybackException
Exception class for queries which can be better expressed as another URL, or
should, for one reason or another, be requested at a different URL. Likely
cause would be to redirect the client so the Browser location reflects the
exact request being served.
- Version:
- $Date: 2010-09-29 05:28:38 +0700 (Wed, 29 Sep 2010) $, $Revision: 3262 $
- Author:
- brad
- See Also:
- Serialized Form
|
Field Summary |
protected static String |
ID
|
ID
protected static final String ID
- See Also:
- Constant Field Values
BetterRequestException
public BetterRequestException(String betterURI,
int status)
- Constructor
- Parameters:
betterURI - status -
BetterRequestException
public BetterRequestException(String betterURI)
- Constructor
- Parameters:
betterURI -
getBetterURI
public String getBetterURI()
- Returns:
- Returns the betterURI.
getStatus
public int getStatus()
- Overrides:
getStatus in class WaybackException
- Returns:
- the HTTP status code appropriate to this exception class.
Copyright © 2005-2011 Internet Archive. All Rights Reserved.