vendor/bundle/ruby/1.8/gems/aws-2.5.6/lib/awsbase/errors.rb
# Does any of the error messages include the regexp +pattern+?
# Used to determine whether to retry request.
Does any of the error messages include the regexp +pattern+.
Used to determine whether to retry request.
Does any of the error messages include the regexp + pattern + . Used to determine whether to retry request .
def include?(pattern_or_string)
      if pattern_or_string.is_a?(String)
        puts 'convert to pattern'
        pattern_or_string = /#{pattern_or_string}/
      end
      if @errors.is_a?(Array)
        @errors.each { |code, msg| return true if code =~ pattern_or_string }
      else
        return true if @errors_str =~ pattern_or_string
      end
      false
    end
def include? ( pattern_or_string ) if pattern_or_string . is_a? ( String ) puts 'convert to pattern' pattern_or_string = / #{ pattern_or_string } / end if @errors . is_a? ( Array ) @errors . each { | code , msg | return true if code =~ pattern_or_string } else return true if @errors_str =~ pattern_or_string end false end
Does any of the error messages include the regexp +pattern+?
Does any of the error messages include the regexp + pattern + ?
pattern_or_string