From 0647eb6cceea564d8f125d5ce671a1d084269111 Mon Sep 17 00:00:00 2001 From: John Melati Date: Fri, 15 Nov 2024 01:09:26 +0100 Subject: [PATCH] make exception type more generic --- .../kotlin/com/sphereon/oid/fed/client/trustchain/TrustChain.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/openid-federation-client/src/commonMain/kotlin/com/sphereon/oid/fed/client/trustchain/TrustChain.kt b/modules/openid-federation-client/src/commonMain/kotlin/com/sphereon/oid/fed/client/trustchain/TrustChain.kt index 56da9c0..ff48b60 100644 --- a/modules/openid-federation-client/src/commonMain/kotlin/com/sphereon/oid/fed/client/trustchain/TrustChain.kt +++ b/modules/openid-federation-client/src/commonMain/kotlin/com/sphereon/oid/fed/client/trustchain/TrustChain.kt @@ -37,7 +37,7 @@ class TrustChain } else { TrustChainResolveResponse(null, true, "A Trust chain could not be established") } - } catch (e: Exception) { + } catch (e: Throwable) { TrustChainConst.LOG.error("buildTrustChainRecursive failed", e) TrustChainResolveResponse(null, true, e.message) }