class Google::Cloud::Error

def status_details

@returns [Object, nil]

over gRPC.
This is typically present on errors originating from calls to an API

object, if both are present. Otherwise returns `nil`.
Returns the value of `status_details` from the underlying cause error
#
def status_details
  return nil unless cause && cause.respond_to?(:status_details)
  cause.status_details
end