Exception: Moneta::Adapters::Couch::HTTPError Private
- Inherits:
-
StandardError
- Object
- StandardError
- Moneta::Adapters::Couch::HTTPError
- Defined in:
- lib/moneta/adapters/couch.rb
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Instance Attribute Summary collapse
- #key ⇒ Object readonly private
- #request_method ⇒ Object readonly private
- #status ⇒ Object readonly private
Instance Method Summary collapse
-
#initialize(status, request_method, key) ⇒ HTTPError
constructor
private
A new instance of HTTPError.
Constructor Details
#initialize(status, request_method, key) ⇒ HTTPError
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of HTTPError.
20 21 22 23 24 25 26 |
# File 'lib/moneta/adapters/couch.rb', line 20 def initialize(status, request_method, key) @status = status @request_method = request_method.to_sym @key = key super "HTTP Error: #{@status} (#{@request_method.to_s.upcase} #{@key})" end |
Instance Attribute Details
#key ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
18 19 20 |
# File 'lib/moneta/adapters/couch.rb', line 18 def key @key end |
#request_method ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
18 19 20 |
# File 'lib/moneta/adapters/couch.rb', line 18 def request_method @request_method end |
#status ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
18 19 20 |
# File 'lib/moneta/adapters/couch.rb', line 18 def status @status end |