Пример #1
0
        public static void HandleDALException(System.Exception ex)
        {
            ExceptionHandlerFactory factory = new ExceptionHandlerFactory();
            ExceptionhandlerBase    handler = factory.GetExceptionHandler(ExceptionType.DAL_EXCEPTION);

            handler.HandleException(ex);
        }
Пример #2
0
        public static void HandleException(System.Exception ex, string exceptionType)
        {
            ExceptionHandlerFactory factory = new ExceptionHandlerFactory();
            ExceptionhandlerBase    handler = factory.GetExceptionHandler(exceptionType);

            handler.HandleException(ex);
        }
Пример #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);
        }