Exception: Telegrammer::Errors::BadRequestError
- Inherits:
-
StandardError
- Object
- StandardError
- Telegrammer::Errors::BadRequestError
- Defined in:
- lib/telegrammer.rb
Overview
Error returned when something goes bad with your request to the Telegram API
Instance Method Summary collapse
-
#initialize(error_code, message) ⇒ BadRequestError
constructor
A new instance of BadRequestError.
Constructor Details
#initialize(error_code, message) ⇒ BadRequestError
Returns a new instance of BadRequestError.
50 51 52 |
# File 'lib/telegrammer.rb', line 50 def initialize(error_code, ) super("Bad request. Error code: #{error_code} - Message: #{}") end |