public static void HandleDALException(System.Exception ex) { ExceptionHandlerFactory factory = new ExceptionHandlerFactory(); ExceptionhandlerBase handler = factory.GetExceptionHandler(ExceptionType.DAL_EXCEPTION); handler.HandleException(ex); }
public static void HandleException(System.Exception ex, string exceptionType) { ExceptionHandlerFactory factory = new ExceptionHandlerFactory(); ExceptionhandlerBase handler = factory.GetExceptionHandler(exceptionType); handler.HandleException(ex); }
public static void HandleUIException(System.Exception ex) { ExceptionHandlerFactory factory = new ExceptionHandlerFactory(); ExceptionhandlerBase handler = factory.GetExceptionHandler(ExceptionType.UI_EXCEPTION); handler.HandleException(ex); //ExceptionPolicy.HandleException(ex, ExceptionType.UI_EXCEPTION); }