File: try.tcl

package info (click to toggle)
libapache2-mod-rivet 3.2.8-1
  • links: PTS
  • area: main
  • in suites: forky, sid
  • size: 6,392 kB
  • sloc: tcl: 9,156; xml: 8,617; ansic: 7,071; sh: 5,040; makefile: 223; sql: 91; lisp: 78
file content (20 lines) | stat: -rw-r--r-- 376 bytes parent folder | download | duplicates (5)
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$
#

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]

    }

}