org.fao.oaipmh.exceptions
Class OaiPmhException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.fao.oaipmh.exceptions.OaiPmhException
- All Implemented Interfaces:
- java.io.Serializable
- Direct Known Subclasses:
- BadArgumentException, BadResumptionTokenException, BadVerbException, CannotDisseminateFormatException, IdDoesNotExistException, NoMetadataFormatsException, NoRecordsMatchException, NoSetHierarchyException
public class OaiPmhException
- extends java.lang.Exception
- See Also:
- Serialized Form
Constructor Summary |
OaiPmhException(java.lang.String code,
java.lang.String message)
|
OaiPmhException(java.lang.String code,
java.lang.String message,
org.jdom.Element response)
|
Method Summary |
java.lang.String |
getCode()
|
org.jdom.Element |
getResponse()
|
static org.jdom.Element |
marshal(OaiPmhException e,
java.lang.String reqUrl,
java.util.Map<java.lang.String,java.lang.String> reqParams)
|
java.lang.String |
toString()
|
static void |
unmarshal(org.jdom.Element response)
|
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
BAD_ARGUMENT
protected static final java.lang.String BAD_ARGUMENT
- See Also:
- Constant Field Values
BAD_RESUMPTION_TOKEN
protected static final java.lang.String BAD_RESUMPTION_TOKEN
- See Also:
- Constant Field Values
BAD_VERB
protected static final java.lang.String BAD_VERB
- See Also:
- Constant Field Values
CANNOT_DISSEMINATE_FORMAT
protected static final java.lang.String CANNOT_DISSEMINATE_FORMAT
- See Also:
- Constant Field Values
ID_DOES_NOT_EXIST
protected static final java.lang.String ID_DOES_NOT_EXIST
- See Also:
- Constant Field Values
NO_RECORDS_MATCH
protected static final java.lang.String NO_RECORDS_MATCH
- See Also:
- Constant Field Values
NO_METADATA_FORMATS
protected static final java.lang.String NO_METADATA_FORMATS
- See Also:
- Constant Field Values
NO_SET_HIERARCHY
protected static final java.lang.String NO_SET_HIERARCHY
- See Also:
- Constant Field Values
OaiPmhException
public OaiPmhException(java.lang.String code,
java.lang.String message)
OaiPmhException
public OaiPmhException(java.lang.String code,
java.lang.String message,
org.jdom.Element response)
getCode
public java.lang.String getCode()
getResponse
public org.jdom.Element getResponse()
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Throwable
marshal
public static org.jdom.Element marshal(OaiPmhException e,
java.lang.String reqUrl,
java.util.Map<java.lang.String,java.lang.String> reqParams)
unmarshal
public static void unmarshal(org.jdom.Element response)
throws OaiPmhException
- Throws:
OaiPmhException