getOrThrowException

Gets the result value or throws a TrustWeaveException.

A captured CancellationException is rethrown as-is (never converted) so coroutine cancellation always propagates instead of being disguised as a domain error.

Return

The result value

Throws

TrustWeaveException

if the result is a failure