|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
org.gcube.common.OAIException
public class OAIException
This class implements an exception object that all OAI classes will throw in case of an error.
| Field Summary | |
|---|---|
short |
code
Exception code |
static short |
CRITICAL_ERR
All the other critical system or network error |
static short |
FAILED_REFRESH_ERR
A failed attempt has been made to Refresh an OAIRecord. |
static short |
HTTP_ERR
The OAI provider returned an unexpected HTTP status code, such as 400. |
static short |
ID_ONLY_ERR
This error is currently unused. |
static short |
INVALID_RESPONSE_ERR
The XML response returned by the OAI provider is not valid, usually because it is missing a key element such as |
static short |
INVALID_VERB_ERR
An attempt to use a verb parameter value that is not supported by the OAI protocol has been made. |
static short |
NO_BASE_URL_ERR
A property or method which depends on contacting an OAI Provider site is being accessed without first setting the BaseURL property of the OAIRepository. |
static short |
NO_MORE_SETS_ERR
An attempt has been made to MoveNext past the end of a list of records. |
static short |
NO_OAI_IDENTIFIER_ERR
The Identify request did not return an oai-identifier description, so this property is not available. |
static short |
NOT_INITIALIZED_ERR
An attempt to use an uninitialized OAIResumptionStream has been made. |
static short |
OAI_2_ONLY_ERR
An attempt to use a feature not spported by OAI 1.x repositories |
static short |
OAI_ERR
An OAI error |
static short |
RETRY_AFTER_ERR
'value' is not a valid retry-after header |
static short |
RETRY_LIMIT_ERR
In the case of an HTTP 503 status, the maximum number of allowable retries has been exceeded. |
static short |
UNKNOWN_ELEMENT_ERR
An OAIRecordList contains elements which are not legal according to the OAI protocol. |
static short |
XML_PARSE_ERR
The XML parser has detected an XML error. |
| Constructor Summary | |
|---|---|
OAIException(short code,
String msg)
|
|
| Method Summary |
|---|
| Methods inherited from class java.lang.Throwable |
|---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, 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 |
|---|
public short code
public static final short FAILED_REFRESH_ERR
public static final short HTTP_ERR
public static final short ID_ONLY_ERR
public static final short INVALID_RESPONSE_ERR
public static final short INVALID_VERB_ERR
public static final short NO_BASE_URL_ERR
public static final short NO_MORE_SETS_ERR
public static final short NO_OAI_IDENTIFIER_ERR
public static final short NOT_INITIALIZED_ERR
public static final short RETRY_AFTER_ERR
public static final short RETRY_LIMIT_ERR
public static final short UNKNOWN_ELEMENT_ERR
public static final short XML_PARSE_ERR
public static final short CRITICAL_ERR
public static final short OAI_2_ONLY_ERR
public static final short OAI_ERR
| Constructor Detail |
|---|
public OAIException(short code,
String msg)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||