Add retry support & redirect following

This commit is contained in:
Steven Bazyl committed 2014-01-22 13:54:06 -08:00
1 parent 30881d7169
commit 1819e16f19
6 files changed
+172 -32

No files matched your search

+11
View File
@@ -19,6 +19,17 @@ module Google
# An error which is raised when there is an unexpected response or other
# transport error that prevents an operation from succeeding.
class TransmissionError < StandardError
attr_reader :result
def initialize(message = nil, result = nil)
super(message)
@result = result
end
end
##
# An exception that is raised if a redirect is required
#
class RedirectError < TransmissionError
end
##