MailException.fromImap constructor

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

Creates a new exception from the low level one

Implementation

MailException.fromImap(
  MailClient mailClient,
  ImapException e, [
  StackTrace? s,
]) : this(
        mailClient,
        '${e.imapClient.logName}:  ${e.message}',
        stackTrace: s ?? e.stackTrace,
        details: e.details,
      );