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 CRM Plus Resources

        Zoho Books Resources


          Zoho Subscriptions Resources

            Zoho Projects Resources


              Zoho Sprints Resources


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




                          Zoho Writer Writer

                          Get Started. Write Away!

                          Writer is a powerful online word processor, designed for collaborative work.

                            Zoho CRM コンテンツ




                              ご検討中の方