Exception: OaiPmh::OAIException

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/oaipmh/exceptions.rb

Overview

Standard error responses for problems serving OAI content. These messages will be wrapped in an XML response to the client.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(code, message) ⇒ OAIException

Returns a new instance of OAIException.



9
10
11
12
# File 'lib/oaipmh/exceptions.rb', line 9

def initialize(code, message)
  super(message)
  @code = code
end

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code.



7
8
9
# File 'lib/oaipmh/exceptions.rb', line 7

def code
  @code
end