Exception: YandexError

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/YandexError.rb

Instance Method Summary collapse

Constructor Details

#initialize(mes, code) ⇒ YandexError

Returns a new instance of YandexError.



2
3
4
5
# File 'lib/YandexError.rb', line 2

def initialize(mes,code)
  super(mes)
  @code = code
end

Instance Method Details

#codeObject



7
8
9
# File 'lib/YandexError.rb', line 7

def code
  @code
end