using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

namespace TwoLayer.DataAccess
{
   /// <summary>
   /// ogólny opis DataAccessExceptionHandler
   /// </summary>
   public static class DataAccessExceptionHandler
   {
      public static void HandleException(string msg)
      {
         // wszystkie błędy zostaną przekierowane do
         string errorUrl = "Error.aspx?msg=" + msg;
         HttpContext.Current.Response.Redirect(errorUrl);
      }
   }
}
