File: try.tcl

package info (click to toggle)
libapache2-mod-rivet 2.3.3-1
  • links: PTS
  • area: main
  • in suites: stretch
  • size: 5,156 kB
  • ctags: 1,093
  • sloc: xml: 7,696; tcl: 6,939; ansic: 5,682; sh: 4,862; makefile: 199; sql: 91; lisp: 78
file content (20 lines) | stat: -rw-r--r-- 424 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# -- try.tcl
#
# Wrapper of the core [try] command 
#
# $Id: try.tcl 1769855 2016-11-15 16:43:16Z mxmanghi $
#

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]

    }

}