blob: fd92aa93345959d702ec922c9b62cadba3e2a943 [file] [log] [blame]
# -- try.tcl
#
# Wrapper of the core [try] command
#
# $Id$
#
namespace eval ::rivet {
proc try {script args} {
uplevel [list ::try $script trap {RIVET ABORTPAGE} {} {
return -errorcode {RIVET ABORTPAGE} -code error
} trap {RIVET THREAD_EXIT} {} {
return -errorcode {RIVET THREAD_EXIT} -code error
} {*}$args]
}
}