From 39960093fc61b44e5ab2583e6ee22afc6b8dc08d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Brage=20Skj=C3=B8nborg?= Date: Tue, 10 Mar 2026 21:01:36 +0100 Subject: [PATCH] Adjusting exception --- .../kotlin/no/iktdev/eventi/events/SoftDispatchExceptions.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/kotlin/no/iktdev/eventi/events/SoftDispatchExceptions.kt b/src/main/kotlin/no/iktdev/eventi/events/SoftDispatchExceptions.kt index 5cc6a9a..b274149 100644 --- a/src/main/kotlin/no/iktdev/eventi/events/SoftDispatchExceptions.kt +++ b/src/main/kotlin/no/iktdev/eventi/events/SoftDispatchExceptions.kt @@ -15,10 +15,10 @@ sealed class SoftDispatchException( ) class SkipListenerException( - reason: String, + reason: String? = "", currentEvent: Class ) : SoftDispatchException( - message = "Listener skipped: $reason", + message = reason?.ifBlank { "Skipping Listener" } ?: "Listener skipped: $reason", eventType = currentEvent )