Exception: Moneta::Adapters::Couch::HTTPError Private

Inherits:
StandardError
  • Object
show all
Defined in:
lib/moneta/adapters/couch.rb

Overview

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.

API:

  • private

Instance Attribute Summary collapse

Instance Method Summary collapse

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.

API:

  • private



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

#keyObject (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.

API:

  • private



18
19
20
# File 'lib/moneta/adapters/couch.rb', line 18

def key
  @key
end

#request_methodObject (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.

API:

  • private



18
19
20
# File 'lib/moneta/adapters/couch.rb', line 18

def request_method
  @request_method
end

#statusObject (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.

API:

  • private



18
19
20
# File 'lib/moneta/adapters/couch.rb', line 18

def status
  @status
end