DLESE Tools
v1.6.0

org.dlese.dpc.oai
Class OAIError

java.lang.Object
  extended by org.dlese.dpc.oai.OAIError

public class OAIError
extends Object

An internal data structure that holds an individual OAI error code and a human-readable description that accompanies it.

Author:
John Weatherley

Constructor Summary
OAIError(String errorCode, String message)
          Constructor for the OAIError object
 
Method Summary
 String getErrorCode()
          Gets the errorCode attribute of the OAIError object
 String getMessage()
          Gets the message attribute of the OAIError object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OAIError

public OAIError(String errorCode,
                String message)
Constructor for the OAIError object

Parameters:
message - A human-readable message that describes this error.
errorCode - The OAI ErrorCode for this error.
Method Detail

getErrorCode

public String getErrorCode()
Gets the errorCode attribute of the OAIError object

Returns:
The errorCode value

getMessage

public String getMessage()
Gets the message attribute of the OAIError object

Returns:
The message value

DLESE Tools
v1.6.0