Exceptions: Difference between revisions
Content deleted Content added
Lingo added |
|||
Line 1,369: | Line 1,369: | ||
-- usage: throw("Custom error 23") |
-- usage: throw("Custom error 23") |
||
on throw (msg) |
on throw (msg) |
||
_player.alertHook("Script runtime error", msg, #script) |
_player.alertHook.alertHook("Script runtime error", msg, #script) |
||
abort() -- exits call stack |
abort() -- exits call stack |
||
end</lang> |
end</lang> |