13 lines
152 B
Plaintext
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 |