Sha256: 1796da865ba3f3f6910b4aedd883f2477f1b2986d035dfd50f29618c306628c4
Contents?: true
Size: 570 Bytes
Versions: 147
Compression:
Stored size: 570 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 ] SMTP_SERVER_ERRORS = [ IOError, Net::SMTPAuthenticationError, Net::SMTPServerBusy, Net::SMTPUnknownError, TimeoutError ] SMTP_CLIENT_ERRORS = [ Net::SMTPFatalError, Net::SMTPSyntaxError ] SMTP_ERRORS = SMTP_SERVER_ERRORS + SMTP_CLIENT_ERRORS
Version data entries
147 entries across 142 versions & 19 rubygems