Created
November 8, 2024 22:02
-
-
Save javierguerrero/708252cf66edbdd3187fd14f34ffe980 to your computer and use it in GitHub Desktop.
exception_handling_csharp_chapter6_2.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
try | |
{ | |
MetodoCritico(); | |
} | |
catch (Exception ex) | |
{ | |
Console.WriteLine($"Error en MetodoCritico: {ex.Message}"); | |
throw; // Relanza la excepción después de registrar detalles | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment