Ejemplo n.º 1
0
        public static void HandleDALException(System.Exception ex)
        {
            ExceptionHandlerFactory factory = new ExceptionHandlerFactory();
            ExceptionhandlerBase    handler = factory.GetExceptionHandler(ExceptionType.DAL_EXCEPTION);

            handler.HandleException(ex);
        }
Ejemplo n.º 2
0
        public static void HandleException(System.Exception ex, string exceptionType)
        {
            ExceptionHandlerFactory factory = new ExceptionHandlerFactory();
            ExceptionhandlerBase    handler = factory.GetExceptionHandler(exceptionType);

            handler.HandleException(ex);
        }
Ejemplo n.º 3
0
        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);
        }