Sha256: 25db85fe2ec9fed0e4987f1363eaa035d16af826454eb85727400f6802de0058
Contents?: true
Size: 396 Bytes
Versions: 3
Compression:
Stored size: 396 Bytes
Contents
# Grooveshark module module Grooveshark class InvalidAuthentication < Exception end class ReadOnlyAccess < Exception end class GeneralError < Exception end # Api error class ApiError < Exception attr_reader :code def initialize(fault) @code = fault['code'] @message = fault['message'] end def to_s "#{@code} - #{@message}" end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
grooveshark-0.2.14 | lib/grooveshark/errors.rb |
grooveshark-0.2.13 | lib/grooveshark/errors.rb |
grooveshark-0.2.12 | lib/grooveshark/errors.rb |