Exception: Telebot::Error

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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(message, error_code = nil)
  super(message)
  @error_code = error_code
end

Instance Attribute Details

#error_codeObject (readonly)

Returns the value of attribute error_code.



3
4
5
# File 'lib/telebot/errors.rb', line 3

def error_code
  @error_code
end