public static void HandleInterfaceException(Exception ex) { ExceptionHandlerFactory factory = new ExceptionHandlerFactory(); ExceptionhandlerBase handler = factory.GetExceptionHandler(ExceptionHandlerConst.INTERFACE_EXCEPTION_POLICY); handler.HandleException(ex); }
public static void HandleServiceException(Exception ex) { ExceptionHandlerFactory factory = new ExceptionHandlerFactory(); ExceptionhandlerBase handler = factory.GetExceptionHandler(ExceptionHandlerConst.SERVICE_EXCEPTION_POLICY); handler.HandleException(ex); }