Sha256: f353944470e7ee259f9a3144debdbdb912235ea1397111f3f875f0b7b37baca5

Contents?: true

Size: 555 Bytes

Versions: 9

Compression:

Stored size: 555 Bytes

Contents

# frozen_string_literal: true
require "net/http"

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,
]

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
theme-check-1.0.0 lib/theme_check/exceptions.rb
theme-check-0.10.2 lib/theme_check/exceptions.rb
theme-check-0.10.1 lib/theme_check/exceptions.rb
theme-check-0.10.0 lib/theme_check/exceptions.rb
theme-check-0.9.1 lib/theme_check/exceptions.rb
theme-check-0.9.0 lib/theme_check/exceptions.rb
theme-check-0.8.3 lib/theme_check/exceptions.rb
theme-check-0.8.2 lib/theme_check/exceptions.rb
theme-check-0.8.1 lib/theme_check/exceptions.rb