Solved
How can I get PostJSON return value when network diconnected
I want to get return value from PostJSON when network disconnected
what is returned and how can I get value?
thank you
I want to get return value from PostJSON when network disconnected
what is returned and how can I get value?
thank you
Hi kiyong park,
If there is any error in the custom code; system prints it in the script logs.
And I just tried it myself and got following error when there is no network:
JavaException: java.net.NoRouteToHostException: No route to host: connect
I used try/catch block to catch the error and wrote some code to do some stuff when this error occurs.
I hope it helps.
No account yet? Create an account
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.