lib/parse/error.rb in parse-ruby-client-0.2.0 vs lib/parse/error.rb in parse-ruby-client-0.3.0

- old
+ new

@@ -1,5 +1,6 @@ +# -*- encoding : utf-8 -*- module Parse # Base exception class for errors thrown by the Parse # client library. ParseError will be raised by any # network operation if Parse.init() has not been called. @@ -15,12 +16,12 @@ attr_accessor :response def initialize(response) @response = response if response - @code = response["code"] - @error = response["error"] + @code = response["code"] + @error = response["error"] end super("#{@code}: #{@error}") end @@ -31,6 +32,9 @@ def message=(msg) @message = msg end end -end \ No newline at end of file + class ParseProtocolRetry < ParseProtocolError + end + +end