org.archive.wayback.exception
Class ResourceNotInArchiveException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.archive.wayback.exception.WaybackException
              extended by org.archive.wayback.exception.ResourceNotInArchiveException
All Implemented Interfaces:
Serializable

public class ResourceNotInArchiveException
extends WaybackException

Exception class for queries which result in no index matches

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
           
 
Fields inherited from class org.archive.wayback.exception.WaybackException
GENERIC_ID, id, KEY_MESSAGE_SUFFIX, KEY_PREFIX, KEY_TITLE_SUFFIX
 
Constructor Summary
ResourceNotInArchiveException(String message)
          Constructor
ResourceNotInArchiveException(String message, String details)
          Constructor with message and details
 
Method Summary
 List<String> getCloseMatches()
           
 int getStatus()
           
 void setCloseMatches(List<String> closeMatches)
           
 
Methods inherited from class org.archive.wayback.exception.WaybackException
getDetails, getMessage, getMessageKey, getTitle, getTitleKey, setupResponse
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ID

protected static final String ID
See Also:
Constant Field Values
Constructor Detail

ResourceNotInArchiveException

public ResourceNotInArchiveException(String message)
Constructor

Parameters:
message -

ResourceNotInArchiveException

public ResourceNotInArchiveException(String message,
                                     String details)
Constructor with message and details

Parameters:
message -
details -
Method Detail

getStatus

public int getStatus()
Overrides:
getStatus in class WaybackException
Returns:
the HTTP status code appropriate to this exception class.

getCloseMatches

public List<String> getCloseMatches()
Returns:
the closeMatches

setCloseMatches

public void setCloseMatches(List<String> closeMatches)
Parameters:
closeMatches - the closeMatches to set


Copyright © 2005-2011 Internet Archive. All Rights Reserved.