Exception: Telegrammer::Errors::ServiceUnavailableError
- Inherits:
-
StandardError
- Object
- StandardError
- Telegrammer::Errors::ServiceUnavailableError
- Defined in:
- lib/telegrammer.rb
Overview
Error returned when Telegram API Service is unavailable
Instance Method Summary collapse
-
#initialize(status_code) ⇒ ServiceUnavailableError
constructor
A new instance of ServiceUnavailableError.
Constructor Details
#initialize(status_code) ⇒ ServiceUnavailableError
Returns a new instance of ServiceUnavailableError.
57 58 59 |
# File 'lib/telegrammer.rb', line 57 def initialize(status_code) super("Telegram API Service unavailable (HTTP error code #{status_code})") end |