method

exception_class

v1_8_7_72 - Show latest stable - Class: Net::SMTP::Response
exception_class()
public

No documentation available.

# File lib/net/smtp.rb, line 995
      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