15-Mar-2022 10:29
When using this syntax, what is "exc" and what does it do?
if { [catch {pool $hostpool} exc] } {
Solved! Go to Solution.
17-Mar-2022 01:56
Here exc is exception handling in the pool assignment request. catch - Evaluate script and trap exceptional returns.
catch script ?varName?
The catch command is used to prevent errors from aborting command interpretation. The catch command calls the Tcl interpreter recursively to execute script, and always returns without raising an error, regardless of any errors that might occur while executing script.
Hope it will help you.
17-Mar-2022 01:56
Here exc is exception handling in the pool assignment request. catch - Evaluate script and trap exceptional returns.
catch script ?varName?
The catch command is used to prevent errors from aborting command interpretation. The catch command calls the Tcl interpreter recursively to execute script, and always returns without raising an error, regardless of any errors that might occur while executing script.
Hope it will help you.