chore: Handle exceptions on external URL calls (#1334)
This commit is contained in:
4
lib/exception_list.rb
Normal file
4
lib/exception_list.rb
Normal file
@@ -0,0 +1,4 @@
|
||||
module ExceptionList
|
||||
URI_EXCEPTIONS = [Errno::ETIMEDOUT, Errno::ECONNREFUSED, URI::InvalidURIError, Net::OpenTimeout, SocketError].freeze
|
||||
REST_CLIENT_EXCEPTIONS = [RestClient::NotFound, RestClient::GatewayTimeout, RestClient::BadRequest, RestClient::MethodNotAllowed].freeze
|
||||
end
|
||||
Reference in New Issue
Block a user