summaryrefslogtreecommitdiff
path: root/lib/badge_exception.dart
diff options
context:
space:
mode:
authoruvok2025-08-02 10:23:12 +0200
committeruvok2025-08-02 10:23:12 +0200
commit4d9f24b89c30eb7829797d514aeaa25cfee1024f (patch)
tree01d94548e97f657cfffca36ba3f6c1b4d3b198ff /lib/badge_exception.dart
parentd666bbb47e3038d04ef833e9a538d9e76e167349 (diff)
badge_exception: Implement toString
Diffstat (limited to 'lib/badge_exception.dart')
-rw-r--r--lib/badge_exception.dart9
1 files changed, 8 insertions, 1 deletions
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 <https://www.gnu.org/licenses/>.
class BadgeException implements Exception {
- BadgeException(String cause);
+ String message;
+
+ BadgeException(this.message);
+
+ @override
+ String toString() {
+ return message;
+ }
}