コード例 #1
0
        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));
        }
コード例 #2
0
 public ExceptionWrapper(Constants.ApplicationLayer layer) : base(true)
 {
     _layer = layer;
 }
コード例 #3
0
 public ExceptionInfoImpl(Constants.ApplicationLayer layer)
 {
     _layer = layer;
     _add   = new AddImpl(this);
 }