Re: catch replacing useful errorInfo
- From: Bryan Oakley <oakley@xxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 29 Aug 2007 17:17:20 GMT
Donald G Porter wrote:
If you need to support Tcl 8.4 (or earlier):
package require Tcl 8.0
proc read_data {args} {
if {[catch {gen_data} msg]} {
error $msg $::errorInfo $::errorCode
}
}
Interesting. You advocate "error .." over "return -code error ...". Is there a technical reason or just a personal preference?
--
Bryan Oakley
http://www.tclscripting.com
.
- Follow-Ups:
- Re: catch replacing useful errorInfo
- From: Donald G Porter
- Re: catch replacing useful errorInfo
- References:
- catch replacing useful errorInfo
- From: TronyQ
- Re: catch replacing useful errorInfo
- From: Donald G Porter
- catch replacing useful errorInfo
- Prev by Date: Re: Code lifecycle and evolution
- Next by Date: Re: catch replacing useful errorInfo
- Previous by thread: Re: catch replacing useful errorInfo
- Next by thread: Re: catch replacing useful errorInfo
- Index(es):
Relevant Pages
|