executeWithResultHandling

open fun <T> executeWithResultHandling(operation: () -> T): Result<T>

Executes the provided operation and wraps any exceptions in appropriate Result types.