Exemplo n.º 1
0
 /**
  * Get the GeoCode error associated with this GeoCode_Exception. This function
  * simply returns the value of {@link GeoCoder::getErrorMessage()} and passes
  * the error code
  *
  * Returns N/A when no driver is set
  *
  * @return string
  */
 public function getGeoCodeMessage()
 {
     // Return the GeoCoder error message associated with this excpetion.
     // If a valid code is not found, it will just return 'Unknown'
     // If no driver is specified, it will just return 'N/A'
     return $this->driver === null ? 'N/A' : $this->driver->getErrorMessage($this->code);
 }