Sha256: 1a2d4b7d8e8f5ea1ee72d7a1c3ffd55e835b17c16275a97d3fa69316300ef078
Contents?: true
Size: 1.03 KB
Versions: 1
Compression:
Stored size: 1.03 KB
Contents
# 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 class << self def errors ALL_ERRORS end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
aranha-0.18.0 | lib/aranha/temporary_errors.rb |