Runs the block. If any non-fatal exception is thrown, ensure that it is of the provided type.
Usage: runWrappingAs(a = ::ThrowableType) { ... }
runWrappingAs(a = ::ThrowableType) { ... }