For more information regarding the security incident at F5, the actions we are taking to address it, and our ongoing efforts to protect our customers, click here.

Forum Discussion

SeanM's avatar
SeanM
Icon for Nimbostratus rankNimbostratus
Mar 15, 2022
Solved

Need help. What is exc?

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

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

  • 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.

1 Reply

  • 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.