Method: RightAws::AwsError#include?
- Defined in:
- lib/awsbase/right_awsbase.rb
#include?(pattern) ⇒ Boolean
Does any of the error messages include the regexp pattern
? Used to determine whether to retry request.
541 542 543 544 545 546 547 548 |
# File 'lib/awsbase/right_awsbase.rb', line 541 def include?(pattern) if @errors.is_a?(Array) @errors.each{ |code, msg| return true if code =~ pattern } else return true if @errors_str =~ pattern end false end |