org.archive.wayback.exception
Class WaybackException
java.lang.Object
java.lang.Throwable
java.lang.Exception
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
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
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 -
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.