コード例 #1
0
ファイル: IntegrationService.cs プロジェクト: leonchen09/poc
        public void SaveSelectedDomainToFile(UserData userData)
        {
            try
            {
                string dataSerialize = ProntoDoc.Framework.Utils.ObjectSerializeHelper.SerializeToString(userData);
                FileAdapter.SaveUserData(dataSerialize);
            }
            catch (BaseException srvExp)
            {
                Services.ServiceException newSrvExp = new Services.ServiceException(ErrorCode.ipe_SaveFileError);
                newSrvExp.Errors.Add(srvExp);

                throw newSrvExp;
            }
            catch (Exception ex)
            {
                ServiceException srvExp = new ServiceException(Core.ErrorCode.ipe_SaveFileError,
                                                               Core.MessageUtils.Expand(Properties.Resources.ipe_SaveFileError, ex.Message), ex.StackTrace);

                throw srvExp;
            }
        }