public class OAIError extends OAIObjectImpl implements org.apache.excalibur.xml.sax.XMLizable
OAIObject.Node| Modifier and Type | Field and Description |
|---|---|
static int |
ERROR_BAD_ARGUMENT |
static int |
ERROR_BAD_DATE |
static int |
ERROR_BAD_RESUMPTION_TOKEN |
static int |
ERROR_BAD_VERB |
static int |
ERROR_CANNOT_DISSEMINATE_FORMAT |
static int |
ERROR_ID_DOES_NOT_EXIST |
static int |
ERROR_NO_METADATA_FORMATS |
static int |
ERROR_NO_RECORDS_MATCH |
static int |
ERROR_NO_SET_HIERARCHY |
static java.lang.String |
ERROR_STRING_BAD_ARGUMENT |
static java.lang.String |
ERROR_STRING_BAD_DATE |
static java.lang.String |
ERROR_STRING_BAD_RESUMPTION_TOKEN |
static java.lang.String |
ERROR_STRING_BAD_VERB |
static java.lang.String |
ERROR_STRING_CANNOT_DISSEMINATE_FORMAT |
static java.lang.String |
ERROR_STRING_ID_DOES_NOT_EXIST |
static java.lang.String |
ERROR_STRING_NO_METADATA_FORMATS |
static java.lang.String |
ERROR_STRING_NO_RECORDS_MATCH |
static java.lang.String |
ERROR_STRING_NO_SET_HIERARCHY |
static java.lang.String |
ERROR_STRING_UNKNOWN |
static int |
ERROR_UNKNOWN |
_context, loggercontentHandler, EMPTY_CONTENT_HANDLER, lexicalHandler, xmlConsumerHTTP_HEADER_NAME_FROM, HTTP_HEADER_NAME_USER_AGENT, NUMBER_RECORDS_PER_RESPONSE, STRING_DATEFORMAT_GRANULARITY_DAY, STRING_DATEFORMAT_GRANULARITY_SECOND| Constructor and Description |
|---|
OAIError(int errorCode)
Construct a empty object.
|
OAIError(int errorCode,
java.lang.String reason)
Simple constructor
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
setUp(int errorCode)
Establishes the error state
and its String name
|
void |
toSAX(org.xml.sax.ContentHandler contentHandler)
Send the error events to the provided content handler while respecting
the oai pmh format for error evetns
|
contextualize, enableLogging, endElement, getContext, sendElement, sendElementContent, startElementcharacters, comment, endCDATA, endDocument, endDTD, endElement, endEntity, endPrefixMapping, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startCDATA, startDocument, startDTD, startEntity, startPrefixMappingrecycle, setConsumer, setContentHandler, setLexicalHandlergetLogger, setupLogger, setupLogger, setupLoggerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcharacters, endDocument, endElement, endPrefixMapping, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startDocument, startPrefixMappingpublic static final int ERROR_UNKNOWN
public static final int ERROR_BAD_ARGUMENT
public static final int ERROR_BAD_RESUMPTION_TOKEN
public static final int ERROR_BAD_VERB
public static final int ERROR_CANNOT_DISSEMINATE_FORMAT
public static final int ERROR_ID_DOES_NOT_EXIST
public static final int ERROR_NO_RECORDS_MATCH
public static final int ERROR_NO_METADATA_FORMATS
public static final int ERROR_NO_SET_HIERARCHY
public static final int ERROR_BAD_DATE
public static final java.lang.String ERROR_STRING_UNKNOWN
public static final java.lang.String ERROR_STRING_BAD_ARGUMENT
public static final java.lang.String ERROR_STRING_BAD_RESUMPTION_TOKEN
public static final java.lang.String ERROR_STRING_BAD_VERB
public static final java.lang.String ERROR_STRING_CANNOT_DISSEMINATE_FORMAT
public static final java.lang.String ERROR_STRING_ID_DOES_NOT_EXIST
public static final java.lang.String ERROR_STRING_NO_RECORDS_MATCH
public static final java.lang.String ERROR_STRING_NO_METADATA_FORMATS
public static final java.lang.String ERROR_STRING_NO_SET_HIERARCHY
public static final java.lang.String ERROR_STRING_BAD_DATE
public OAIError(int errorCode)
public OAIError(int errorCode,
java.lang.String reason)
errorCode - reason - protected void setUp(int errorCode)
errorCode - public void toSAX(org.xml.sax.ContentHandler contentHandler)
throws org.xml.sax.SAXException
toSAX in interface org.apache.excalibur.xml.sax.XMLizablecontentHandler - The handler to feed with eventsorg.xml.sax.SAXExceptionCopyright © 2000-2010 Ministere de la culture et de la communication / AJLSM. All Rights Reserved.