Add retry support & redirect following
This commit is contained in:
1 parent
30881d7169
commit
1819e16f19
6 files changed
+172
-32
No files matched your search
@@ -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
|
||||
|
||||
##
|
||||
|
||||
Reference in new issue
Block a user