Exception: PDC::ResponseError

Inherits:
Error
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/pdc/http/errors.rb

Direct Known Subclasses

JsonError

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(args = {}) ⇒ ResponseError

Returns a new instance of ResponseError.



12
13
14
15
# File 'lib/pdc/http/errors.rb', line 12

def initialize(args = {})
  @response = args[:response]
  @args = args
end

Instance Attribute Details

#responseObject (readonly)

Returns the value of attribute response.



10
11
12
# File 'lib/pdc/http/errors.rb', line 10

def response
  @response
end