Sha256: 6e21e7f1a0415ce4ead3c7e6033dbdddbedf6794da4db7b253485357ddb7eb8d
Contents?: true
Size: 606 Bytes
Versions: 14
Compression:
Stored size: 606 Bytes
Contents
# frozen_string_literal: true require "net/http" require "net/smtp" # Example: # 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
14 entries across 14 versions & 1 rubygems