Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2006-11-07
02:56 • Add attachment 290-4-20061106.diff to ticket [1587317fffffffff|1587317f... artifact: ae51a76816 user: ecky-l
02:56 • Ticket [1587317fff] TIP #290 register custom error handlers status still Ope... artifact: 2dfa6c92d3 user: ecky-l
2006-11-05
00:28 • Ticket [1587317fff]: 4 changes artifact: fb7fce3845 user: ecky-l
00:28 • Add attachment 290-3-20061104.diff to ticket [1587317fffffffff|1587317f... artifact: 33d08f1629 user: ecky-l
2006-11-01
00:59 • Add attachment errorscript.patch to ticket [1587317fffffffff|1587317fff... artifact: e0cd427a9e user: ecky-l
00:59 • Ticket [1587317fff] TIP #290 register custom error handlers status still Ope... artifact: f8f76cab98 user: ecky-l
2006-10-30
23:01 • Ticket [1587317fff]: 4 changes artifact: 54bf332422 user: ecky-l
23:01 • Add attachment errorscript.patch to ticket [1587317fffffffff|1587317fff... artifact: f2f8567ff3 user: ecky-l
16:01 • New ticket [1587317fff] TIP #290 register custom error handlers. artifact: d1720c76a8 user: ecky-l

TIP #290 register custom error handlers

Open1587317fffffffffffffffffffffffffffffffffCreated 20 years agoUpdated 20 years ago
Descriptionplain2006-10-30 16:01:09
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
ecky-lplain2006-10-30 23:01:09
File Added - 200649: errorscript.patch
ecky-lplain2006-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-lplain2006-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-lplain2006-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
Log in (anonymous is fine) to add a comment.

Attachments: