Menu

#487 TIP #290 register custom error handlers

open
5
2006-10-30
2006-10-30
EL
No

This is the patch for TIP #290 ("Registration of Custom
Error Handler Scripts") against 8.5a5

See http://www.tcl.tk/cgi-bin/tct/tip/290 for details
on the proposed feature

Discussion

  • EL

    EL - 2006-10-30
     
  • EL

    EL - 2006-10-31

    Logged In: YES
    user_id=1345135

    added updating of error information before the custom
    handler is run, so that the ::errorInfo variable contains it
    when the handler is run.

     
  • EL

    EL - 2006-10-31

    updated patch - see above (31.10.2006)

     
  • EL

    EL - 2006-11-04

    Logged In: YES
    user_id=1345135

    updated the patch to the new specification. Changes:

    - handler is called on every exceptional return, not just
    TCL_ERROR (as it was before)
    - return code and result are appended as arguments to the
    handler
    - registration command is now a subcommand of trace:

    trace set exception ?-caught? ?-uncaught? ?command?
    trace info exception
    trace unset exception

    The new patch is against CVS HEAD

     
  • EL

    EL - 2006-11-04

    patch against today's CVS head

     
  • EL

    EL - 2006-11-06
     
  • EL

    EL - 2006-11-06

    Logged In: YES
    user_id=1345135

    fixed error for old trace commands ('trace variable', 'trace
    vdelete', 'trace vinfo')... just a missed comma.
    fixed tests/trace.test to give correct message