Files
ValueScript/concept-code/exceptions/tryCatch.vsm
2023-03-23 09:35:33 +11:00

14 lines
210 B
Plaintext

export @_anon0 {}
@_anon0 = function() {
set_catch :catch0 %error
new $Error ["Something went wrong"] %_tmp0
throw %_tmp0
unset_catch
jmp :catch_end0
catch0:
mov %error %return
end
catch_end0:
}