Exception: MicroVkontakte::ServerError
- Defined in:
- lib/micro_vkontakte/base.rb
Instance Attribute Summary collapse
-
#error ⇒ Object
Returns the value of attribute error.
-
#method ⇒ Object
Returns the value of attribute method.
-
#params ⇒ Object
Returns the value of attribute params.
Instance Method Summary collapse
-
#initialize(method, params, error) ⇒ ServerError
constructor
A new instance of ServerError.
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
#error ⇒ Object
Returns the value of attribute error.
10 11 12 |
# File 'lib/micro_vkontakte/base.rb', line 10 def error @error end |
#method ⇒ Object
Returns the value of attribute method.
10 11 12 |
# File 'lib/micro_vkontakte/base.rb', line 10 def method @method end |
#params ⇒ Object
Returns the value of attribute params.
10 11 12 |
# File 'lib/micro_vkontakte/base.rb', line 10 def params @params end |