Sha256: e3118ccba347026dfa44a3674d61e77fe95778b2f03e261d4790dc52788d6eaf

Contents?: true

Size: 631 Bytes

Versions: 11

Compression:

Stored size: 631 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,
  ]

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

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
theme-check-1.7.0 lib/theme_check/exceptions.rb
theme-check-1.6.2 lib/theme_check/exceptions.rb
theme-check-1.6.1 lib/theme_check/exceptions.rb
theme-check-1.6.0 lib/theme_check/exceptions.rb
theme-check-1.5.2 lib/theme_check/exceptions.rb
theme-check-1.5.1 lib/theme_check/exceptions.rb
theme-check-1.5.0 lib/theme_check/exceptions.rb
theme-check-1.4.0 lib/theme_check/exceptions.rb
theme-check-1.3.0 lib/theme_check/exceptions.rb
theme-check-1.2.0 lib/theme_check/exceptions.rb
theme-check-1.1.0 lib/theme_check/exceptions.rb