What’s the best way to raise an exception in C#? April 10, 2023 by Tarik try { throw new DivideByZeroException(); } catch (DivideByZeroException ex) { LogHelper.Error("TEST EXCEPTION", ex); }