Sha256: e1ba30fbd1ed2c3a5cdff59775fc25703d19452602c40d3ec3fd615f3b8901bc

Contents?: true

Size: 716 Bytes

Versions: 26

Compression:

Stored size: 716 Bytes

Contents

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

26 entries across 26 versions & 2 rubygems

Version Path
suspenders-0.3.6 templates/errors.rb
suspenders-0.3.5 templates/errors.rb
suspenders-0.3.4 templates/errors.rb
da-suspenders-1.2.2 template/trout/config/initializers/errors.rb
da-suspenders-1.2.1 template/trout/config/initializers/errors.rb
da-suspenders-1.2.0 template/trout/config/initializers/errors.rb
suspenders-0.3.2 templates/errors.rb
suspenders-0.3.1 templates/errors.rb
suspenders-0.3 templates/errors.rb
da-suspenders-1.1.0 template/trout/config/initializers/errors.rb
suspenders-0.2.7 template/files/errors.rb
suspenders-0.2.6 template/files/errors.rb
suspenders-0.2.5 template/files/errors.rb
suspenders-0.2.4 template/files/errors.rb
suspenders-0.2.3 template/files/errors.rb
da-suspenders-1.0.1 template/trout/config/initializers/errors.rb
suspenders-0.2.2 template/files/errors.rb
suspenders-0.2.1 template/files/errors.rb
suspenders-0.2.0 template/files/errors.rb
suspenders-0.1.0.beta.7 template/files/errors.rb