function e
error "This is an error."
end
function f
call e
end
try
call f
catch exception as e
print "Caught error: {e.json_encode()}"
end
print "Error handled."
error "This error will end the program!"
print "This will not be printed."