Exception: SimpleSpotify::Error::AuthorizationError

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(body) ⇒ AuthorizationError

Returns a new instance of AuthorizationError.



17
18
19
# File 'lib/simplespotify/errors.rb', line 17

def initialize body
  @message = body[:error_description]
end

Instance Attribute Details

#messageObject (readonly)

Returns the value of attribute message.



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

def message
  @message
end