Are there try catch statements in deluge?

Are there try catch statements in deluge?

How can I catch errors?

I'm using this script:
  1. void googlemap.getLatitudeAndLongitudeMap(providers provider)
  2. {
  3.     /*address = provider.Full_Address;
  4.     latandlngXml = getUrl("http://maps.google.com/maps/api/geocode/xml?address=" + address + "&sensor=true");
  5.     // Retriving xml containing latitude and langitude xml 
  6.     if ((latandlngXml).length()  >  0)
  7.     {
  8.         latitude = latandlngXml.executeXPath("/GeocodeResponse/result/geometry/location/lat/text()");
  9.         longitude = latandlngXml.executeXPath("/GeocodeResponse/result/geometry/location/lng/text()");
  10.         provider.Long_Lat = latitude + " " + longitude;
  11.     }*/

  12. }
(uncommented)

It sometimes bugs out and throws an error when assigning latitude. When it throws an error I can't update the record. Is there anyway to catch an error from the executeXPath function?

e.g.

try{

}
catch(Exception e){

}




                            Zoho Desk Resources

                            • Desk Community Learning Series


                            • Digest


                            • Functions


                            • Meetups


                            • Kbase


                            • Resources


                            • Glossary


                            • Desk Marketplace


                            • MVP Corner


                            • Word of the Day



                                Zoho Marketing Automation


                                        Manage your brands on social media



                                              Zoho TeamInbox Resources

                                                Zoho DataPrep Resources



                                                  Zoho CRM Plus Resources

                                                    Zoho Books Resources


                                                      Zoho Subscriptions Resources

                                                        Zoho Projects Resources


                                                          Zoho Sprints Resources


                                                            Qntrl Resources


                                                              Zoho Creator Resources


                                                                Zoho WorkDrive Resources



                                                                  Zoho Campaigns Resources

                                                                    Zoho CRM Resources

                                                                    • CRM Community Learning Series

                                                                      CRM Community Learning Series


                                                                    • Tips

                                                                      Tips

                                                                    • Functions

                                                                      Functions

                                                                    • Meetups

                                                                      Meetups

                                                                    • Kbase

                                                                      Kbase

                                                                    • Resources

                                                                      Resources

                                                                    • Digest

                                                                      Digest

                                                                    • CRM Marketplace

                                                                      CRM Marketplace

                                                                    • MVP Corner

                                                                      MVP Corner

                                                                    





                                                                    




                                                                        Design. Discuss. Deliver.

                                                                        Create visually engaging stories with Zoho Show.

                                                                        Get Started Now