Exception: OAI::Exception
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- OAI::Exception
- Defined in:
- lib/oai/exception.rb
Overview
Standard error responses for problems serving OAI content. These messages will be wrapped in an XML response to the client.
Direct Known Subclasses
ArgumentException, FormatException, IdException, MetadataFormatException, NoMatchException, ResumptionTokenException, SetException, VerbException
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
Instance Method Summary collapse
-
#initialize(message, code = nil) ⇒ Exception
constructor
A new instance of Exception.
Constructor Details
#initialize(message, code = nil) ⇒ Exception
Returns a new instance of Exception.
9 10 11 12 |
# File 'lib/oai/exception.rb', line 9 def initialize(, code = nil) super() @code = code end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
7 8 9 |
# File 'lib/oai/exception.rb', line 7 def code @code end |