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.



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

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

Instance Attribute Details

#messageObject (readonly)

Returns the value of attribute message.



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

def message
  @message
end