'UnAuthenticated Connection: zbooks_connection'

'UnAuthenticated Connection: zbooks_connection'

I have a zoho connection in Zoho Books, the link name es zbooks_connection, but I like to validate if exist, by example if I use this line in my code:
response=zoho.books.getTemplates("", "","zbooks_connection");
But I don't  have the connection I like to send a custom message "Go to the development section to create the conection"
How can I catch the error and show my custom message in deluge?

Actually deluge send me: Check and update the code in line -1 as there is a Exception : Error due to - 'UnAuthenticated Connection: zbooks_connection'"
 

Regards.