Exception: Grendel::Client::HTTPException
- Inherits:
-
Exception
- Object
- Exception
- Grendel::Client::HTTPException
- Defined in:
- lib/grendel/client.rb
Instance Method Summary collapse
-
#initialize(response) ⇒ HTTPException
constructor
A new instance of HTTPException.
Constructor Details
#initialize(response) ⇒ HTTPException
Returns a new instance of HTTPException.
56 57 58 59 60 |
# File 'lib/grendel/client.rb', line 56 def initialize(response) msg = "#{response.code} #{response.message}" msg << "\n#{response.body}" unless response.body.blank? super(msg) end |