add error handle & locationManager Class