Exception: MicroVkontakte::ServerError

Inherits:
Error
  • Object
show all
Defined in:
lib/micro_vkontakte/base.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(method, params, error) ⇒ ServerError

Returns a new instance of ServerError.



11
12
13
14
# File 'lib/micro_vkontakte/base.rb', line 11

def initialize(method, params, error)
  super "Server error: #{error} - method:'#{method}'"
  @method, @params, @error = method, params, error
end

Instance Attribute Details

#errorObject

Returns the value of attribute error.



10
11
12
# File 'lib/micro_vkontakte/base.rb', line 10

def error
  @error
end

#methodObject

Returns the value of attribute method.



10
11
12
# File 'lib/micro_vkontakte/base.rb', line 10

def method
  @method
end

#paramsObject

Returns the value of attribute params.



10
11
12
# File 'lib/micro_vkontakte/base.rb', line 10

def params
  @params
end