On error

From Second Life Wiki
Revision as of 11:34, 30 August 2007 by Argent Stonecutter (talk | contribs) (New page: '''this is a proposed feature''' <pre> on_error(integer error_num, string error_text, integer recoverable) { if(error_num == STACK_HEAP) llResetScript(); } </pre> ===Restrictions=== If t...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

this is a proposed feature

on_error(integer error_num, string error_text, integer recoverable)
{
  if(error_num == STACK_HEAP) llResetScript();
}

Restrictions

If this exists a section of heap may need to be reserved for the error handler stack, so adding an error handler could reduce the available heap. The error handler should probably not (and may not be allowed to) allocate any local list or string variables. Errors in the error handler are fatal.