Sha256: 78abfff8f640c56aae1ac1e364c32397fa8034e49e1fea5b20a6f4bc87637ac8

Contents?: true

Size: 736 Bytes

Versions: 114

Compression:

Stored size: 736 Bytes

Contents

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

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

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

SMTP_SERVER_ERRORS = [TimeoutError,
                      IOError,
                      Net::SMTPUnknownError,
                      Net::SMTPServerBusy,
                      Net::SMTPAuthenticationError]

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

SMTP_ERRORS = SMTP_SERVER_ERRORS + SMTP_CLIENT_ERRORS

Version data entries

114 entries across 114 versions & 12 rubygems

Version Path
gb-firestarter-0.3.1 templates/errors.rb
gb-firestarter-0.3.0 templates/errors.rb
jetfuel-1.19.24 templates/errors.rb
gb-firestarter-0.2.0 templates/errors.rb
jetfuel-1.19.23 templates/errors.rb
jetfuel-1.19.22 templates/errors.rb
tirantes-1.0.8 templates/errors.rb
tirantes-1.0.7 templates/errors.rb
gb-firestarter-0.1.0 templates/errors.rb
jetfuel-1.19.21 templates/errors.rb
jetfuel-1.19.20 templates/errors.rb
jetfuel-1.19.19 templates/errors.rb
jetfuel-1.19.18 templates/errors.rb
jetfuel-1.19.17 templates/errors.rb
mj-suspenders-0.0.9 templates/errors.rb
jetfuel-1.19.16 templates/errors.rb
jetfuel-1.19.15 templates/errors.rb
jetfuel-1.19.14 templates/errors.rb
jetfuel-1.19.13 templates/errors.rb
jetfuel-1.19.12 templates/errors.rb