Sha256: c2dad22b6c2a0a99a344a2358454647da8c20e54219dbfadc19c4b200188b327
Contents?: true
Size: 595 Bytes
Versions: 2
Compression:
Stored size: 595 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, Errno::ECONNREFUSED, 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
suspenders-20230113.0 | templates/errors.rb |
suspenders-1.56.1 | templates/errors.rb |