From 55881b5e79f8d552de1efb158e4335a63fe3158b Mon Sep 17 00:00:00 2001 From: dankito Date: Sat, 12 Feb 2022 23:47:02 +0100 Subject: [PATCH] Fixed that encoder may throws an from Throwable and not from Exception derived throwable --- .../messages/datenelemente/basisformate/TextDatenelement.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fints4k/src/commonMain/kotlin/net/dankito/banking/fints/messages/datenelemente/basisformate/TextDatenelement.kt b/fints4k/src/commonMain/kotlin/net/dankito/banking/fints/messages/datenelemente/basisformate/TextDatenelement.kt index b943304d..7d989e81 100644 --- a/fints4k/src/commonMain/kotlin/net/dankito/banking/fints/messages/datenelemente/basisformate/TextDatenelement.kt +++ b/fints4k/src/commonMain/kotlin/net/dankito/banking/fints/messages/datenelemente/basisformate/TextDatenelement.kt @@ -42,7 +42,7 @@ abstract class TextDatenelement(var value: String?, existenzstatus: Existenzstat throwInvalidCharacterException() } } - } catch (e: Exception) { + } catch (e: Throwable) { throwInvalidCharacterException() } }