Exception: Rubychy::Errors::BadRequestError

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

Overview

Error returned when something goes bad with your request to the Rubychy API

Instance Method Summary collapse

Constructor Details

#initialize(error_code, message) ⇒ BadRequestError

Returns a new instance of BadRequestError.



48
49
50
# File 'lib/rubychy.rb', line 48

def initialize(error_code, message)
  super("Bad request. Error code: `#{error_code}` - Message: `#{message}`")
end