lib/google/apis/errors.rb in google-api-client-0.25.0 vs lib/google/apis/errors.rb in google-api-client-0.26.0
- old
+ new
@@ -39,9 +39,18 @@
@cause.backtrace
else
super
end
end
+
+ def inspect
+ extra = ""
+ extra << " status_code: #{status_code.inspect}" unless status_code.nil?
+ extra << " header: #{header.inspect}" unless header.nil?
+ extra << " body: #{body.inspect}" unless body.nil?
+
+ "#<#{self.class.name}: #{message}#{extra}>"
+ end
end
# An error which is raised when there is an unexpected response or other
# transport error that prevents an operation from succeeding.
class TransmissionError < Error