Exception: Fabychy::Errors::BadRequestError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/fabychy.rb,
lib/fabychy/user.rb

Overview

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

Instance Method Summary collapse

Constructor Details

#initialize(error_code, message) ⇒ BadRequestError

Returns a new instance of BadRequestError.



68
69
70
# File 'lib/fabychy.rb', line 68

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