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){

}