Created
July 13, 2010 00:17
-
-
Save vincentchu/473271 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
LIKELY_TEMP_ERRORS = [AWS::S3::NoSuchKey, ActiveRecord::RecordNotFound] | |
## => [AWS::S3::NoSuchKey, ActiveRecord::RecordNotFound] | |
error = AWS::S3::NoSuchKey.new("foo", "bar") | |
## => #<AWS::S3::NoSuchKey: foo> | |
LIKELY_TEMP_ERRORS.include?(error.class) | |
## => true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment