Project

General

Profile

Actions

Bug #11628

closed

Net::SMTPServerBusy is not behaving according to documentation

Added by rupert (Robert Pankowecki) over 8 years ago. Updated over 3 years ago.

Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 2.2.3p173 (2015-08-18 revision 51636) [x86_64-linux]
[ruby-core:71243]

Description

The documentation for Net::SMTPServerBusy says Represents SMTP error code 420 or 450, a temporary error (http://ruby-doc.org/stdlib-2.2.0/libdoc/net/smtp/rdoc/Net/SMTPServerBusy.html)

However the code for that is:

      def exception_class
        case @status
        when /\A4/  then SMTPServerBusy
        when /\A50/ then SMTPSyntaxError
        when /\A53/ then SMTPAuthenticationError
        when /\A5/  then SMTPFatalError
        else             SMTPUnknownError
        end
      end

so it actually represents any error code starting with 4, including such as: Net::SMTPServerBusy: 401 4.1.3 Bad recipient address syntax.

It doesn't help that different pages in internet list different error codes:

Actions #1

Updated by jeremyevans (Jeremy Evans) almost 5 years ago

  • Status changed from Open to Closed

Applied in changeset git|14b0c94ac38c40459d908fd4c5778efa60e4689f.


Fix documentation for Net::SMTPServerBusy

Fixes [Bug #11628]

Actions

Also available in: Atom PDF

Like0
Like0Like0