diff --git a/lib/smtp/smtp_exception.dart b/lib/smtp/smtp_exception.dart index 85c29c67..f4a28067 100644 --- a/lib/smtp/smtp_exception.dart +++ b/lib/smtp/smtp_exception.dart @@ -1,12 +1,21 @@ import 'smtp_client.dart'; import 'smtp_response.dart'; +/// Contains details about SMTP problems class SmtpException implements Exception { + /// The used SMTP client final SmtpClient smtpClient; + + /// The full SMTP response final SmtpResponse response; + + /// The error message String? get message => response.errorMessage; + + /// The stacktrace, if known final StackTrace? stackTrace; + /// Creates a new SMTP exception SmtpException(this.smtpClient, this.response, {this.stackTrace}); @override