From fd6c49ee9b1ab8791de3e5394a5f76d3cf195fd7 Mon Sep 17 00:00:00 2001 From: Abdourahamane Boinaidi Date: Fri, 16 Aug 2024 10:08:57 +0200 Subject: [PATCH] fix: Expose loadDefaultAccount throws exceptions --- .../multiplatform_swisstransfer/SwissTransferInjection.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/STCore/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/SwissTransferInjection.kt b/STCore/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/SwissTransferInjection.kt index 76ce6c2f..f7e8363e 100644 --- a/STCore/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/SwissTransferInjection.kt +++ b/STCore/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/SwissTransferInjection.kt @@ -45,7 +45,7 @@ class SwissTransferInjection { /** * Loads the default user account and initializes Realm transfers for the default user ID defined in the constants. */ - @Throws(Exception::class) + @Throws(IllegalArgumentException::class, IllegalStateException::class) fun loadDefaultAccount() { realmProvider.loadRealmTransfers(Constants.DEFAULT_USER_ID) }