Is that possible to get the OPC connection detail when it's fault?

Dear group,

I’m trying to use scripting to catch the OPC connection fault and send notification email.
the system library “system.opc.getServerState” could only return the status as string, but no error detail.
I found that following method may could help to do that, but an error “ImportError: No module named opc” happened (I tried with class with “from com.inductiveautomation.ignition.client.script import ClientOpcUtilities”, it worked.)
OpcConnection

do you have any idea about how to get the error message when the connection is fault?
Thanks a lot!