Exception: Lark::ResponseError

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(errcode, errmsg = '') ⇒ ResponseError

Returns a new instance of ResponseError.



21
22
23
24
# File 'lib/lark.rb', line 21

def initialize(errcode, errmsg='')
  @error_code = errcode
  super "(#{error_code}) #{errmsg}"
end

Instance Attribute Details

#error_codeObject (readonly)

Returns the value of attribute error_code.



20
21
22
# File 'lib/lark.rb', line 20

def error_code
  @error_code
end