lib/grooveshark/errors.rb in grooveshark-0.2.11 vs lib/grooveshark/errors.rb in grooveshark-0.2.12

- old
+ new

@@ -1,10 +1,17 @@ +# Grooveshark module module Grooveshark - class InvalidAuthentication < Exception ; end - class ReadOnlyAccess < Exception ; end - class GeneralError < Exception ; end + 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'] @@ -13,6 +20,6 @@ def to_s "#{@code} - #{@message}" end end -end \ No newline at end of file +end