Sha256: a4954ee6d9e2bfde890db92115be2fea2ea201e73b969bba128c1cc924a428ea
Contents?: true
Size: 593 Bytes
Versions: 7
Compression:
Stored size: 593 Bytes
Contents
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 ].freeze SMTP_SERVER_ERRORS = [ IOError, Net::SMTPAuthenticationError, Net::SMTPServerBusy, Net::SMTPUnknownError, Timeout::Error ].freeze SMTP_CLIENT_ERRORS = [ Net::SMTPFatalError, Net::SMTPSyntaxError ].freeze SMTP_ERRORS = SMTP_SERVER_ERRORS + SMTP_CLIENT_ERRORS
Version data entries
7 entries across 7 versions & 2 rubygems