Skip to content

Error text (python_catch_err)

What it does: Returns the text description of the currently caught exception from the python_try_catch block.

python_catch_err

Inputs

  • None.

Output

  • Text (String) with a description of the error.

When to use it

  • Statement of diagnostics in branch catch.
  • Save the error message in the log or on the display.

Tips and pitfalls

  • Use only inside logic where the exception is actually caught.
  • Outside the catch branch, this value may not make sense.

Generated Python example

str(err_code_str)