Skip to content

Commit

Permalink
Enumerate handled exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
angusmcleod committed Dec 7, 2017
1 parent 3294b28 commit 541e3c3
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion lib/geocode.rb
Expand Up @@ -16,7 +16,15 @@ def self.set_provider(provider)
timeout: timeout,
cache: $redis,
cache_prefix: 'geocoder:',
always_raise: :all
always_raise: [
SocketError,
Timeout::Error,
Geocoder::OverQueryLimitError,
Geocoder::RequestDenied,
Geocoder::InvalidRequest,
Geocoder::InvalidApiKey,
Geocoder::ServiceUnavailable
]
)

## test to see that the provider requirements are met
Expand Down

0 comments on commit 541e3c3

Please sign in to comment.