MailException.fromSmtp constructor

MailException.fromSmtp(
  1. MailClient mailClient,
  2. SmtpException e, [
  3. StackTrace? s
])

Creates a new exception from the low level one

Implementation

MailException.fromSmtp(
  MailClient mailClient,
  SmtpException e, [
  StackTrace? s,
]) : this(
        mailClient,
        '${e.smtpClient.logName}:  ${e.message}',
        stackTrace: s ?? e.stackTrace,
        details: e.response,
      );