Hi, is there a way to check if a `Throwable` have ...
# kotest
k
Hi, is there a way to check if a
Throwable
have (deeply) nested cause of type T?
s
Not built in
l
But I suppose you can keep checking
Copy code
shouldThrow<MyAssertion> {
    foo()
}.cause.shouldBeOfType<X>.cause.shouldBeOfType<Y>