method

exception_class

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

Determines whether there was an error and raises the appropriate error based on the reply code of the response