Created
November 9, 2024 03:13
-
-
Save javierguerrero/a9cedb9524e6a8601199f025efa508e0 to your computer and use it in GitHub Desktop.
exception_handling_csharp_chapter6_4.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public async Task ObtenerDatosAsync() | |
{ | |
try | |
{ | |
await RealizarLlamadaAPIAsync(); | |
} | |
catch (HttpRequestException ex) | |
{ | |
Console.WriteLine("Error en la solicitud HTTP: " + ex.Message); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment