Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save javierguerrero/708252cf66edbdd3187fd14f34ffe980 to your computer and use it in GitHub Desktop.
Save javierguerrero/708252cf66edbdd3187fd14f34ffe980 to your computer and use it in GitHub Desktop.
exception_handling_csharp_chapter6_2.cs
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