public class WaybackException extends Exception
Actually many sub-classes are not really "internal". The fact that this class has helper methods for localization suggests sub-classes, if not all, are to be made visible on user interface. Probably we should revise class hierarchy and add more sub-classes - that would eliminate ad-hoc branching found in many places.
Modifier and Type | Field and Description |
---|---|
protected static String |
GENERIC_ID |
protected String |
id |
protected boolean |
isLiveWebAvailable |
protected static String |
KEY_MESSAGE_SUFFIX |
protected static String |
KEY_PREFIX |
protected static String |
KEY_TITLE_SUFFIX |
Constructor and Description |
---|
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
|
Modifier and Type | Method and Description |
---|---|
String |
getDetails() |
String |
getMessage() |
String |
getMessageKey() |
int |
getStatus() |
String |
getTitle() |
String |
getTitleKey() |
boolean |
isLiveWebAvailable() |
void |
setLiveWebAvailable(boolean isLiveWebAvailable)
Set if target URL is available on live Web.
|
void |
setupResponse(javax.servlet.http.HttpServletResponse response) |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
protected static final String GENERIC_ID
protected static final String KEY_PREFIX
protected static final String KEY_TITLE_SUFFIX
protected static final String KEY_MESSAGE_SUFFIX
protected String id
protected boolean isLiveWebAvailable
public WaybackException(String message)
message
- public WaybackException(String message, String title)
message
- title
- public String getTitle()
public String getMessage()
getMessage
in class Throwable
public String getDetails()
public String getTitleKey()
public String getMessageKey()
public int getStatus()
public void setupResponse(javax.servlet.http.HttpServletResponse response)
public boolean isLiveWebAvailable()
public void setLiveWebAvailable(boolean isLiveWebAvailable)
Used by page template to generate a special message suggesting user to archive the live web.
TODO: I believe this is specific to not-in-archive situation, not WaybackException in general which covers broader type of failures.
isLiveWebAvailable
- true
if availableCopyright © 2005–2015 IIPC. All rights reserved.