org.archive.wayback.exception
Class WaybackException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.archive.wayback.exception.WaybackException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
AccessControlException, AnchorWindowTooSmallException, AuthenticationControlException, BadContentException, BadQueryException, BetterRequestException, ConfigurationException, LiveDocumentNotAvailableException, LiveWebCacheUnavailableException, ResourceIndexNotAvailableException, ResourceNotAvailableException, ResourceNotInArchiveException

public class WaybackException
extends Exception

Base class for Wayback internal exceptions.

Version:
$Date: 2010-09-29 05:28:38 +0700 (Wed, 29 Sep 2010) $, $Revision: 3262 $
Author:
Brad Tofel
See Also:
Serialized Form

Field Summary
protected static String GENERIC_ID
           
protected  String id
           
protected static String KEY_MESSAGE_SUFFIX
           
protected static String KEY_PREFIX
           
protected static String KEY_TITLE_SUFFIX
           
 
Constructor Summary
WaybackException(String message)
          Constructor with message only
WaybackException(String message, String title)
          Constructor with message, and title
WaybackException(String message, String title, String details)
          Constructor with message, title, and details
 
Method Summary
 String getDetails()
           
 String getMessage()
           
 String getMessageKey()
           
 int getStatus()
           
 String getTitle()
           
 String getTitleKey()
           
 void setupResponse(javax.servlet.http.HttpServletResponse response)
           
 
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

GENERIC_ID

protected static final String GENERIC_ID
See Also:
Constant Field Values

KEY_PREFIX

protected static final String KEY_PREFIX
See Also:
Constant Field Values

KEY_TITLE_SUFFIX

protected static final String KEY_TITLE_SUFFIX
See Also:
Constant Field Values

KEY_MESSAGE_SUFFIX

protected static final String KEY_MESSAGE_SUFFIX
See Also:
Constant Field Values

id

protected String id
Constructor Detail

WaybackException

public WaybackException(String message)
Constructor with message only

Parameters:
message -

WaybackException

public WaybackException(String message,
                        String title)
Constructor with message, and title

Parameters:
message -
title -

WaybackException

public WaybackException(String message,
                        String title,
                        String details)
Constructor with message, title, and details

Parameters:
message -
title -
details -
Method Detail

getTitle

public String getTitle()
Returns:
Returns the title.

getMessage

public String getMessage()
Overrides:
getMessage in class Throwable
Returns:
Returns the message.

getDetails

public String getDetails()
Returns:
Returns the details.

getTitleKey

public String getTitleKey()
Returns:
The localization key name of the title of this WaybackException

getMessageKey

public String getMessageKey()
Returns:
The localization key name of the message of this WaybackException

getStatus

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

setupResponse

public void setupResponse(javax.servlet.http.HttpServletResponse response)


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