DLESE Tools
v1.6.0

org.dlese.dpc.oai.harvester
Class OAIErrorException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.dlese.dpc.oai.harvester.OAIErrorException
All Implemented Interfaces:
Serializable

public class OAIErrorException
extends Exception

Indicates an OAI protocol error code was returned by the data provider during a harvest.

Author:
John Weatherley
See Also:
Serialized Form

Constructor Summary
OAIErrorException(String errorCode, String errorMsg)
          Constructor for the OAIErrorException object
 
Method Summary
 String getOAIErrorCode()
          Gets the oAIErrorCode attribute of the OAIErrorException object
 String getOAIErrorMessage()
          Gets the oAIErrorMessage attribute of the OAIErrorException object
 
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
 

Constructor Detail

OAIErrorException

public OAIErrorException(String errorCode,
                         String errorMsg)
Constructor for the OAIErrorException object

Parameters:
errorCode - The OAI error code.
errorMsg - Description of the error.
Method Detail

getOAIErrorCode

public String getOAIErrorCode()
Gets the oAIErrorCode attribute of the OAIErrorException object

Returns:
The oAIErrorCode value

getOAIErrorMessage

public String getOAIErrorMessage()
Gets the oAIErrorMessage attribute of the OAIErrorException object

Returns:
The oAIErrorMessage value

DLESE Tools
v1.6.0