From c9e58c0d437224da46a54df32b7a7d6b3074ac5c Mon Sep 17 00:00:00 2001 From: Robert Virkus Date: Thu, 3 Jun 2021 10:55:32 +0200 Subject: [PATCH] improve documentation --- lib/smtp/smtp_exception.dart | 9 +++++++++ 1 file changed, 9 insertions(+) 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