Skip to content

Instantly share code, notes, and snippets.

@vincentchu
Created July 13, 2010 00:17
Show Gist options
  • Save vincentchu/473271 to your computer and use it in GitHub Desktop.
Save vincentchu/473271 to your computer and use it in GitHub Desktop.
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