Sha256: 31c0911a14f0119233ef2038fbcd5b525a4229a758c4b94cb37a56aedf6b7f14

Contents?: true

Size: 657 Bytes

Versions: 16

Compression:

Stored size: 657 Bytes

Contents

# frozen_string_literal: true
require "net/http"

module ThemeCheck
  TIMEOUT_EXCEPTIONS = [
    Net::ReadTimeout,
    Net::OpenTimeout,
    Net::WriteTimeout,
    Errno::ETIMEDOUT,
    Timeout::Error,
  ]

  CONNECTION_EXCEPTIONS = [
    IOError,
    EOFError,
    SocketError,
    Errno::EINVAL,
    Errno::ECONNRESET,
    Errno::ECONNABORTED,
    Errno::EPIPE,
    Errno::ECONNREFUSED,
    Errno::EAGAIN,
    Errno::EHOSTUNREACH,
    Errno::ENETUNREACH,
    Errno::EADDRNOTAVAIL,
  ]

  NET_HTTP_EXCEPTIONS = [
    Net::HTTPBadResponse,
    Net::HTTPHeaderSyntaxError,
    Net::ProtocolError,
    *TIMEOUT_EXCEPTIONS,
    *CONNECTION_EXCEPTIONS,
  ]
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
theme-check-1.15.0 lib/theme_check/exceptions.rb
theme-check-1.14.0 lib/theme_check/exceptions.rb
theme-check-1.13.0 lib/theme_check/exceptions.rb
theme-check-1.12.1 lib/theme_check/exceptions.rb
theme-check-1.12.0 lib/theme_check/exceptions.rb
theme-check-1.11.0 lib/theme_check/exceptions.rb
theme-check-1.10.3 lib/theme_check/exceptions.rb
theme-check-1.10.2 lib/theme_check/exceptions.rb
theme-check-1.10.1 lib/theme_check/exceptions.rb
theme-check-1.10.0 lib/theme_check/exceptions.rb
theme-check-1.9.2 lib/theme_check/exceptions.rb
theme-check-1.9.1 lib/theme_check/exceptions.rb
theme-check-1.9.0 lib/theme_check/exceptions.rb
theme-check-1.8.0 lib/theme_check/exceptions.rb
theme-check-1.7.2 lib/theme_check/exceptions.rb
theme-check-1.7.1 lib/theme_check/exceptions.rb