Hi.
I'm new in tcl programming, and I'm looking for a better way to handle errors.
Actually, I use "catch {}" in critical areas and if it returns 1, a function to treat this error is called.
This function may receive arguments such as important information about the state of the program, and prints out comments about the error (with an "error" command instead of "return -code"). The only problem is that the program ends when it finds an error.
Is there any other way to do it better?
Thanks.
I'm new in tcl programming, and I'm looking for a better way to handle errors.
Actually, I use "catch {}" in critical areas and if it returns 1, a function to treat this error is called.
This function may receive arguments such as important information about the state of the program, and prints out comments about the error (with an "error" command instead of "return -code"). The only problem is that the program ends when it finds an error.
Is there any other way to do it better?
Thanks.