lib/aranha/temporary_errors.rb in aranha-0.18.0 vs lib/aranha/temporary_errors.rb in aranha-0.19.0

- old
+ new

@@ -1,28 +1,21 @@ # frozen_string_literal: true require 'aranha/parsers/invalid_state_exception' require 'aranha/parsers/source_address/fetch_content_error' -require 'httpclient' require 'eac_ruby_utils/core_ext' require 'selenium-webdriver' module Aranha module TemporaryErrors ARANHA_ERRORS = [::Aranha::Parsers::InvalidStateException, ::Aranha::Parsers::SourceAddress::FetchContentError].freeze CORE_ERRORS = [::SocketError].freeze ERRNO_ERRORS = [Errno::ECONNREFUSED, ::Errno::ECONNRESET].freeze - HTTPCLIENT_ERRORS = [ - ::HTTPClient::BadResponseError, - ::HTTPClient::ConnectTimeoutError, - ::HTTPClient::ReceiveTimeoutError - ].freeze NET_ERRORS = [::Net::HTTPFatalError, ::Net::HTTPServerException, ::Net::OpenTimeout].freeze SELENIUM_ERRORS = [::Selenium::WebDriver::Error::TimeoutError].freeze - ALL_ERRORS = ARANHA_ERRORS + CORE_ERRORS + ERRNO_ERRORS + - HTTPCLIENT_ERRORS + NET_ERRORS + SELENIUM_ERRORS + ALL_ERRORS = ARANHA_ERRORS + CORE_ERRORS + ERRNO_ERRORS + NET_ERRORS + SELENIUM_ERRORS class << self def errors ALL_ERRORS end