Exception: BN::Error::Middleware::InvalidHTTPResponse

Inherits:
Base
  • Object
show all
Defined in:
lib/bn/error/middleware/invalid_http_response.rb

Overview

Raised when the HTTP response object given is invalid.

Instance Method Summary collapse

Methods included from Helpers::HasAttributes

included, #initialize, #update_attributes

Instance Method Details

#response#body

Get the HTTP response.

Returns:

  • (#body)


# File 'lib/bn/error/middleware/invalid_http_response.rb', line 8

#response=#body

Set the HTTP response.

Parameters:

  • value (#body)

Returns:

  • (#body)


18
# File 'lib/bn/error/middleware/invalid_http_response.rb', line 18

attribute(:response)

#to_sObject



20
21
22
# File 'lib/bn/error/middleware/invalid_http_response.rb', line 20

def to_s
  "Invalid HTTP response."
end