Exception: ElephantInTheRoom::TheOneApiSdk::Errors::HttpError

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

Overview

Errors related to HTTP response codes

Direct Known Subclasses

ClientError, ServerError

Instance Method Summary collapse

Constructor Details

#initialize(message_prefix, response) ⇒ HttpError

Returns a new instance of HttpError.



7
8
9
# File 'lib/elephant_in_the_room/the_one_api_sdk/errors.rb', line 7

def initialize(message_prefix, response)
  super("(#{message_prefix}) #{response.code}: #{response.message}")
end