public class ResourceIndexNotAvailableException extends WaybackException
ResourceIndex
implementations upon failures
while reading underlining index data.
As such, default status is SC_SERVICE_UNAVAILABLE
.
TODO: should receive root-cause Exception. Code throwing this exception often
does printStackTrace()
- not a desirable practice.
Modifier and Type | Field and Description |
---|---|
protected static String |
ID |
GENERIC_ID, id, isLiveWebAvailable, KEY_MESSAGE_SUFFIX, KEY_PREFIX, KEY_TITLE_SUFFIX
Constructor and Description |
---|
ResourceIndexNotAvailableException(String message)
Constructor
|
ResourceIndexNotAvailableException(String message,
String details)
Constructor with message and details
|
Modifier and Type | Method and Description |
---|---|
int |
getStatus() |
getDetails, getMessage, getMessageKey, getTitle, getTitleKey, isLiveWebAvailable, setLiveWebAvailable, setupResponse
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
protected static final String ID
public ResourceIndexNotAvailableException(String message)
message
- public int getStatus()
getStatus
in class WaybackException
Copyright © 2005–2015 IIPC. All rights reserved.