Exception: Tapirgo::Errors::HTTPError
- Inherits:
-
StandardError
- Object
- StandardError
- Tapirgo::Errors::HTTPError
- Defined in:
- lib/tapirgo/errors.rb
Overview
Exception class for HTTP Tapir errors
Instance Method Summary collapse
-
#initialize(response) ⇒ HTTPError
constructor
A new instance of HTTPError.
Constructor Details
#initialize(response) ⇒ HTTPError
Returns a new instance of HTTPError.
26 27 28 |
# File 'lib/tapirgo/errors.rb', line 26 def initialize(response) super("Request failed with code #{response.code}: #{response.to_s}") end |