lib/xero_gateway/oauth.rb in xero_gateway-2.0.4 vs lib/xero_gateway/oauth.rb in xero_gateway-2.0.5
- old
+ new
@@ -8,10 +8,12 @@
class OAuth
class TokenExpired < StandardError; end
class TokenInvalid < StandardError; end
+ class RateLimitExceeded < StandardError; end
+ class UnknownError < StandardError; end
unless defined? XERO_CONSUMER_OPTIONS
XERO_CONSUMER_OPTIONS = {
:site => "https://api.xero.com",
:request_token_path => "/oauth/RequestToken",
@@ -51,6 +53,6 @@
def authorize_from_access(atoken, asecret)
@atoken, @asecret = atoken, asecret
end
end
-end
\ No newline at end of file
+end