Exception: Vk::Error
- Inherits:
-
StandardError
- Object
- StandardError
- Vk::Error
- Defined in:
- lib/vk/error.rb,
lib/vk/exceptions.rb
Overview
Class for requesting vk.com api data
Direct Known Subclasses
Instance Attribute Summary collapse
-
#details ⇒ Object
readonly
Returns the value of attribute details.
Instance Method Summary collapse
-
#initialize(msg, details = {}) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(msg, details = {}) ⇒ Error
Returns a new instance of Error.
8 9 10 11 12 13 14 |
# File 'lib/vk/error.rb', line 8 def initialize(msg, details = {}) if msg.is_a?(Hash) details, msg = msg, msg['error']['error_msg'] end super(msg) @details = details end |
Instance Attribute Details
#details ⇒ Object (readonly)
Returns the value of attribute details.
16 17 18 |
# File 'lib/vk/error.rb', line 16 def details @details end |