Exception: RubyFedora::ConnectionError
- Inherits:
-
StandardError
- Object
- StandardError
- RubyFedora::ConnectionError
- Defined in:
- lib/fedora/connection.rb
Overview
This class is based on ActiveResource::Connection so MIT license applies.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#response ⇒ Object
readonly
:nodoc:.
Instance Method Summary collapse
-
#initialize(response, message = nil) ⇒ ConnectionError
constructor
A new instance of ConnectionError.
- #to_s ⇒ Object
Constructor Details
#initialize(response, message = nil) ⇒ ConnectionError
Returns a new instance of ConnectionError.
65 66 67 68 |
# File 'lib/fedora/connection.rb', line 65 def initialize(response, = nil) @response = response = end |
Instance Attribute Details
#response ⇒ Object (readonly)
:nodoc:
63 64 65 |
# File 'lib/fedora/connection.rb', line 63 def response @response end |
Instance Method Details
#to_s ⇒ Object
70 71 72 |
# File 'lib/fedora/connection.rb', line 70 def to_s "Failed with #{response.code} #{response.message if response.respond_to?(:message)}" end |