Fehlerbehandlung
Debug statt Console https://learn.microsoft.com/en-us/dotnet/maui/data-cloud/rest?view=net-maui-8.0
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
using System;
|
using System;
|
||||||
|
using System.Diagnostics;
|
||||||
using System.Net.Http;
|
using System.Net.Http;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
@@ -45,7 +46,7 @@ namespace Jugenddienst_Stunden.Models {
|
|||||||
//return responseData;
|
//return responseData;
|
||||||
} catch (HttpRequestException e) {
|
} catch (HttpRequestException e) {
|
||||||
// Fehlerbehandlung
|
// Fehlerbehandlung
|
||||||
Console.WriteLine($"An error occurred: {e.Message}");
|
Debug.WriteLine($"An error occurred: {e.Message}");
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user