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("" + 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. }

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?



catch(Exception e){

                  Zoho Marketing Automation

                    Zoho SalesIQ Resources

                          Manage your brands on social media

                            Zoho Pagesense Resources

                                  Zoho TeamInbox Resources

                                    Zoho DataPrep Resources

                                      Zoho CRM Plus Resources

                                        Zoho Books Resources

                                          Zoho Subscriptions Resources

                                            Zoho Desk 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


                                                          • Functions


                                                          • Meetups


                                                          • Kbase


                                                          • Resources


                                                          • Digest


                                                          • CRM Marketplace

                                                            CRM Marketplace

                                                          • MVP Corner

                                                            MVP Corner

                                                          • Word of the Day

                                                            Word of the Day

                                                                Design. Discuss. Deliver.

                                                                Create visually engaging stories with Zoho Show.

                                                                Get Started Now