How can I get the Python error object(exception return value) from the embedded python method?
I have an embedded Python method like as below;
ClassMethod test2() As XXX [ Language = python ]
{
try:
a=1/0
except Exception as ex:
print("Exception: %s" % str(ex))
return ex
}I'm not sure what kind of return type to set for this classmethod. "As XXX" <--
I tried to set "ClassMethod test2() As %Exception.PythonException [ Language = python ]"
However, I got the following return value when I run the method in the IRIS terminal.
USER>set st=
.png)



.png)

