Class: Vk::API::Errors::APIErrorUnknown

Inherits:
Error
  • Object
show all
Defined in:
lib/vk/api/errors.rb

Instance Method Summary collapse

Constructor Details

#initialize(msg = 'Unknown error occurred') ⇒ APIErrorUnknown

Returns a new instance of APIErrorUnknown.


12
13
14
# File 'lib/vk/api/errors.rb', line 12

def initialize(msg = 'Unknown error occurred')
  super
end

Instance Method Details

#codeObject


16
17
18
# File 'lib/vk/api/errors.rb', line 16

def code
  1
end