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

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

            handler.HandleException(ex);
        }
Esempio 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);
        }