org.archive.wayback.exception
Class WaybackException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.archive.wayback.exception.WaybackException
- All Implemented Interfaces:
- java.io.Serializable
- Direct Known Subclasses:
- AccessControlException, AnchorWindowTooSmallException, AuthenticationControlException, BadContentException, BadQueryException, BetterRequestException, ConfigurationException, LiveDocumentNotAvailableException, ResourceIndexNotAvailableException, ResourceNotAvailableException, ResourceNotInArchiveException
public class WaybackException
- extends java.lang.Exception
Base class for Wayback internal exceptions.
- Version:
- $Date: 2007-09-26 18:28:52 -0700 (Wed, 26 Sep 2007) $, $Revision: 2005 $
- Author:
- Brad Tofel
- See Also:
- Serialized Form
|
Constructor Summary |
WaybackException(java.lang.String message)
Constructor with message only |
WaybackException(java.lang.String message,
java.lang.String title)
Constructor with message, and title |
WaybackException(java.lang.String message,
java.lang.String title,
java.lang.String details)
Constructor with message, title, and details |
| 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 |
GENERIC_ID
protected static final java.lang.String GENERIC_ID
- See Also:
- Constant Field Values
KEY_PREFIX
protected static final java.lang.String KEY_PREFIX
- See Also:
- Constant Field Values
KEY_TITLE_SUFFIX
protected static final java.lang.String KEY_TITLE_SUFFIX
- See Also:
- Constant Field Values
KEY_MESSAGE_SUFFIX
protected static final java.lang.String KEY_MESSAGE_SUFFIX
- See Also:
- Constant Field Values
id
protected java.lang.String id
WaybackException
public WaybackException(java.lang.String message)
- Constructor with message only
- Parameters:
message -
WaybackException
public WaybackException(java.lang.String message,
java.lang.String title)
- Constructor with message, and title
- Parameters:
message - title -
WaybackException
public WaybackException(java.lang.String message,
java.lang.String title,
java.lang.String details)
- Constructor with message, title, and details
- Parameters:
message - title - details -
getTitle
public java.lang.String getTitle()
- Returns:
- Returns the title.
getMessage
public java.lang.String getMessage()
- Overrides:
getMessage in class java.lang.Throwable
- Returns:
- Returns the message.
getDetails
public java.lang.String getDetails()
- Returns:
- Returns the details.
getTitleKey
public java.lang.String getTitleKey()
- Returns:
- The localization key name of the title of this WaybackException
getMessageKey
public java.lang.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-2009 Internet Archive. All Rights Reserved.