public static bool HandleException(System.Exception ex, Constants.ApplicationLayer layer) { string exceptionPolicy = null; switch (layer) { case Constants.ApplicationLayer.DataAccess: exceptionPolicy = DATA_ACCESS_LAYER_EXCEPTION_POLICY; break; case Constants.ApplicationLayer.BusinessEnitity: exceptionPolicy = BUSINESS_ENTITY_LAYER_EXCEPTION_POLICY; break; default: return(true); } return(HandleException(ex, exceptionPolicy)); }
public ExceptionWrapper(Constants.ApplicationLayer layer) : base(true) { _layer = layer; }
public ExceptionInfoImpl(Constants.ApplicationLayer layer) { _layer = layer; _add = new AddImpl(this); }