Detecting Connection timeout

Detecting Connection timeout

Hi everyone!
I'm using ZDK.Apps.CRM.Connections.invoke() to call a connection, how can I tell programmatically if there's a timeout?
I've tried using try-catch but it looks like no exception is thrown...?