Exception: Telegrammer::Errors::ServiceUnavailableError

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

Overview

Error returned when Telegram API Service is unavailable

Instance Method Summary collapse

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