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:
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

Field Summary
protected static java.lang.String GENERIC_ID
           
protected  java.lang.String id
           
protected static java.lang.String KEY_MESSAGE_SUFFIX
           
protected static java.lang.String KEY_PREFIX
           
protected static java.lang.String KEY_TITLE_SUFFIX
           
 
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
 
Method Summary
 java.lang.String getDetails()
           
 java.lang.String getMessage()
           
 java.lang.String getMessageKey()
           
 int getStatus()
           
 java.lang.String getTitle()
           
 java.lang.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 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
Constructor Detail

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 -
Method Detail

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.