Exception: Clacky::Channel::Adapters::Telegram::ApiClient::ApiError
- Inherits:
-
StandardError
- Object
- StandardError
- Clacky::Channel::Adapters::Telegram::ApiClient::ApiError
- Defined in:
- lib/clacky/server/channel/adapters/telegram/api_client.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#description ⇒ Object
readonly
Returns the value of attribute description.
Instance Method Summary collapse
-
#initialize(code, description) ⇒ ApiError
constructor
A new instance of ApiError.
Constructor Details
#initialize(code, description) ⇒ ApiError
Returns a new instance of ApiError.
33 34 35 36 37 |
# File 'lib/clacky/server/channel/adapters/telegram/api_client.rb', line 33 def initialize(code, description) @code = code @description = description super("Telegram API error #{code}: #{description}") end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
32 33 34 |
# File 'lib/clacky/server/channel/adapters/telegram/api_client.rb', line 32 def code @code end |
#description ⇒ Object (readonly)
Returns the value of attribute description.
32 33 34 |
# File 'lib/clacky/server/channel/adapters/telegram/api_client.rb', line 32 def description @description end |