Brilliant exception handling I found in an app i had to work on

  • TwilightKiddy@programming.dev
    link
    fedilink
    arrow-up
    1
    ·
    1 year ago

    Rethrowing caught exception in C# is just throw;, not throw ex;. This will delete old stack trace, which is very punishable if someone debugs your code later and you’re still around.