Try Catch When
Quite frankly, I didn’t knew that there’s even a WHEN clause to the TRY-CATCH block. Thanks to Eric Porter [http://weblogs.asp.net/eporter/archive/2005/08/10/422136.aspx] for sharing this tip! Public Shared Function SaveChangesToServer(ByVal ShouldThrowException As Boolean) As Boolean Try ' Do some…