private static void RethrowException() { try { ExceptionTests.Throw(); } catch (ArgumentNullException) { throw; } }
public static void CreateThrowAndPrint() { try { ExceptionTests.Throw(); } catch (ArgumentNullException e) { e.Print(); } }
private static void RethrowExceptionWithReference() { try { ExceptionTests.Throw(); } catch (ArgumentNullException e) { throw e; } }
public static void CreateThrowAndPrintWithInner() { try { try { ExceptionTests.Throw(); } catch (ArgumentNullException e) { throw new InvalidNameException("Custom", e); } } catch (InvalidNameException e) { e.Print(); } }