Files
ground/tests/catch.grnd
2026-04-15 10:37:14 +10:00

13 lines
152 B
Plaintext

fun !throws -int
throw "MyError" "longer error message"
endfun
catch "MyError" %catcher
call !throws &res
end 0
@catcher
println "ruh roh"
end 1