From 4d9f24b89c30eb7829797d514aeaa25cfee1024f Mon Sep 17 00:00:00 2001 From: uvok Date: Sat, 2 Aug 2025 10:23:12 +0200 Subject: badge_exception: Implement toString --- lib/badge_exception.dart | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'lib/badge_exception.dart') diff --git a/lib/badge_exception.dart b/lib/badge_exception.dart index 4dae0f8..75f019d 100644 --- a/lib/badge_exception.dart +++ b/lib/badge_exception.dart @@ -14,5 +14,12 @@ // along with this program. If not, see . class BadgeException implements Exception { - BadgeException(String cause); + String message; + + BadgeException(this.message); + + @override + String toString() { + return message; + } } -- cgit v1.2.3