Exception: Telebot::Error
- Inherits:
-
StandardError
- Object
- StandardError
- Telebot::Error
- Defined in:
- lib/telebot/errors.rb
Instance Attribute Summary collapse
-
#error_code ⇒ Object
readonly
Returns the value of attribute error_code.
Instance Method Summary collapse
-
#initialize(message, error_code = nil) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(message, error_code = nil) ⇒ Error
Returns a new instance of Error.
5 6 7 8 |
# File 'lib/telebot/errors.rb', line 5 def initialize(, error_code = nil) super() @error_code = error_code end |
Instance Attribute Details
#error_code ⇒ Object (readonly)
Returns the value of attribute error_code.
3 4 5 |
# File 'lib/telebot/errors.rb', line 3 def error_code @error_code end |