Sha256: 6559aab173d9a456a9e547323b13819f523ec0533f3359dc7465e11227681500

Contents?: true

Size: 554 Bytes

Versions: 12

Compression:

Stored size: 554 Bytes

Contents

require 'net/http'
require 'net/smtp'

# begin
#   some http call
# rescue *HTTP_ERRORS => error
#   notify_hoptoad error
# end

HTTP_ERRORS = [
  EOFError,
  Errno::ECONNRESET,
  Errno::EINVAL,
  Net::HTTPBadResponse,
  Net::HTTPHeaderSyntaxError,
  Net::ProtocolError,
  Timeout::Error,
]

SMTP_SERVER_ERRORS = [
  IOError,
  Net::SMTPAuthenticationError,
  Net::SMTPServerBusy,
  Net::SMTPUnknownError,
  Timeout::Error,
]

SMTP_CLIENT_ERRORS = [
  Net::SMTPFatalError,
  Net::SMTPSyntaxError,
]

SMTP_ERRORS = SMTP_SERVER_ERRORS + SMTP_CLIENT_ERRORS

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
kazan-0.5.0 templates/errors.rb
kazan-0.4.0 templates/errors.rb
kazan-0.3.1 templates/errors.rb
kazan-0.3.0 templates/errors.rb
kazan-0.2.4 templates/errors.rb
kazan-0.2.3 templates/errors.rb
kazan-0.2.2 templates/errors.rb
kazan-0.2.1 templates/errors.rb
kazan-0.2.0 templates/errors.rb
kazan-0.1.2 templates/errors.rb
kazan-0.1.1 templates/errors.rb
kazan-0.1.0 templates/errors.rb