ForNext
Only Do What Only You Can Do
111. catch exception
Hyperpolyglot Interpreted Languages: Tcl, Lua, JavaScript, Io より (2012.05.08)
JavaScript
try { risky(); } catch (e) { alert("risky failed"); }
Lua
if not pcall(risky) then print "risky failed" end
Io
msg := "risky failed\n" e := try(risky call) e catch(Exception, write(msg))