Share

Tcl

Tracker: Patches

5 TIP #290 register custom error handlers - ID: 1587317
Last Update: Comment added ( ecky-l )

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


Eckhard Lehmann ( ecky-l ) - 2006-10-30 16:01

5

Open

None

miguel sofer

45. Parsing and Eval

None

Public


Comments ( 3 )

Date: 2006-11-06 19:56
Sender: ecky-l

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


Date: 2006-11-04 17:28
Sender: ecky-l

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




Date: 2006-10-31 17:59
Sender: ecky-l

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.


Attached Files ( 4 )

Filename Description Download
errorscript.patch Download
errorscript.patch updated patch - see above (31.10.2006) Download
290-3-20061104.diff patch against today's CVS head Download
290-4-20061106.diff Download

Changes ( 4 )

Field Old Value Date By
File Added 201647: 290-4-20061106.diff 2006-11-06 19:56 ecky-l
File Added 201401: 290-3-20061104.diff 2006-11-04 17:28 ecky-l
File Added 200848: errorscript.patch 2006-10-31 17:59 ecky-l
File Added 200649: errorscript.patch 2006-10-30 16:01 ecky-l