Tcl Source Code

View Ticket
Login
Ticket UUID: 1587317
Title: TIP #290 register custom error handlers
Type: Patch Version: None
Submitter: ecky-l Created on: 2006-10-30 16:01:09
Subsystem: 45. Parsing and Eval Assigned To: msofer
Priority: 5 Medium Severity:
Status: Open Last Modified: 2006-11-07 02:56:00
Resolution: None Closed By:
    Closed on:
Description:
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
User Comments: ecky-l added on 2006-11-07 02:56:00:

File Added - 201647: 290-4-20061106.diff

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

ecky-l added on 2006-11-05 00:28:21:

File Added - 201401: 290-3-20061104.diff

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

ecky-l added on 2006-11-01 00:59:22:

File Added - 200848: errorscript.patch

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.

ecky-l added on 2006-10-30 23:01:09:

File Added - 200649: errorscript.patch

Attachments: