mirror of
https://dev.azure.com/TeilRad/sharee.bike%20App/_git/Code
synced 2025-06-22 05:47:28 +02:00
Version 3.0.255
This commit is contained in:
parent
db9c288584
commit
5a26bf273b
1495 changed files with 159465 additions and 5060 deletions
|
@ -38,25 +38,25 @@ namespace TINK.Model.Services.Geolocation
|
|||
catch (FeatureNotSupportedException fnsEx)
|
||||
{
|
||||
// Handle not supported on device exception
|
||||
Log.ForContext<LastKnownGeolocationService>().Error("Retrieving Geolocation not supported on device. {Exception}", fnsEx);
|
||||
Log.ForContext<GeolocationService>().Error("Retrieving Geolocation not supported on device. {Exception}", fnsEx);
|
||||
throw new Exception("Abfrage Standort nicht möglich auf Gerät.", fnsEx);
|
||||
}
|
||||
catch (FeatureNotEnabledException fneEx)
|
||||
{
|
||||
// Handle not enabled on device exception
|
||||
Log.ForContext<LastKnownGeolocationService>().Error("Retrieving Geolocation not enabled on device. {Exception}", fneEx);
|
||||
Log.ForContext<GeolocationService>().Error("Retrieving Geolocation not enabled on device. {Exception}", fneEx);
|
||||
throw new Exception("Abfrage Standort nicht aktiviert auf Gerät.", fneEx);
|
||||
}
|
||||
catch (PermissionException pEx)
|
||||
{
|
||||
// Handle permission exception
|
||||
Log.ForContext<LastKnownGeolocationService>().Error("Retrieving Geolocation not permitted on device. {Exception}", pEx);
|
||||
Log.ForContext<GeolocationService>().Error("Retrieving Geolocation not permitted on device. {Exception}", pEx);
|
||||
throw new Exception("Berechtiung für Abfrage Standort nicht erteilt für App.", pEx);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
// Unable to get location
|
||||
Log.ForContext<LastKnownGeolocationService>().Error("Retrieving Geolocation failed. {Exception}", ex);
|
||||
Log.ForContext<GeolocationService>().Error("Retrieving Geolocation failed. {Exception}", ex);
|
||||
throw new Exception("Abfrage Standort fehlgeschlagen.", ex);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue