Sha256: 1d9859e3c15971470e9cc72d00978d93b993c0390bbfb166e6d5ac2cfbf62594
Contents?: true
Size: 624 Bytes
Versions: 3
Compression:
Stored size: 624 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 ].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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
underlay-2.0 | templates/errors.rb |
underlay-1.52.1 | templates/errors.rb |
underlay-1.50.1 | templates/errors.rb |