Exemple #1
0
 public static void UnreachableCode <TException>(Func <string> getErrorMessage = null)
     where TException : Exception
 {
     ExceptionFactory.ThrowException(typeof(TException), getErrorMessage != null ? getErrorMessage.Invoke() : ErrorMessageFactory.ShouldBeUnreachable());
 }