This commit is contained in:
SuperCraftAlex
2024-03-09 20:26:04 +01:00
parent 6f80ab30a3
commit b3150fd948
10 changed files with 196 additions and 13 deletions

View File

@@ -0,0 +1,8 @@
package blitz
fun <R> modifyException(new: Throwable, block: () -> R): R =
try {
block()
} catch (e: Throwable) {
throw new
}