method %ProcessError should output the real error but what you see is the result of ZT "JGTW"
fun As %String,
msgid As %Integer) [ Final ]
{
Use ..Gateway.GatewayDevice
If fun="Y9" Do ..%ReadObjects(..Gateway) Quit
Set error=$zobjexport(12)
Set x=$$$ERROR($$$RemoteGatewayError,error)
Use ..Gateway.CurrentDevice
Zt "JGTW"
}
Your error lands in the highlighted line. But as the method is FINAL you can't overload it.
Your original class System.Object might be a less restricted copy.
In addition, I see ZTRAP command this may explain why Try / Catch didn't react as expected.
- Log in to post comments
