Skip to content

Commit

Permalink
Chore: add message in BaseMailException toString()
Browse files Browse the repository at this point in the history
  • Loading branch information
robert-virkus committed Dec 8, 2023
1 parent 1c9bc01 commit 0bbcd51
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/src/exception.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,13 @@ class BaseMailException implements Exception {

/// The error message
final String message;

@override
String toString() => '$runtimeType: $message';
}

/// Notifies about an invalid argument
class InvalidArgumentException extends BaseMailException {
/// Creates a new invalid argument exception
InvalidArgumentException(String message) : super(message);
InvalidArgumentException(super.message);
}

0 comments on commit 0bbcd51

Please sign in to comment.