cancel
Showing results for 
Search instead for 
Did you mean: 

Need help. What is exc?

SeanM
Nimbostratus
Nimbostratus

When using this syntax, what is "exc" and what does it do?

if { [catch {pool $hostpool} exc] } {

1 ACCEPTED SOLUTION

Samir
Nacreous
Nacreous

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.

View solution in original post

1 REPLY 1

Samir
Nacreous
Nacreous

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.