Exception: MintHttp::ResponseError

Inherits:
Error
  • Object
show all
Defined in:
lib/mint_http/errors.rb

Direct Known Subclasses

ClientError, ServerError

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(msg, response) ⇒ ResponseError

Returns a new instance of ResponseError.



44
45
46
47
# File 'lib/mint_http/errors.rb', line 44

def initialize(msg, response)
  super(msg)
  @response = response
end

Instance Attribute Details

#responseHTTP::Response (readonly)

Returns:



42
43
44
# File 'lib/mint_http/errors.rb', line 42

def response
  @response
end

Instance Method Details

#to_sObject



49
50
51
# File 'lib/mint_http/errors.rb', line 49

def to_s
  response.inspect
end