Exception: Tapirgo::Errors::HTTPError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/tapirgo/errors.rb

Overview

Exception class for HTTP Tapir errors

Instance Method Summary collapse

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