예제 #1
0
        internal string ExecuteWithErrorHandling()
        {
            var result = Execute();

            if (result.StatusCode != DataVaultBusinessErrorCode.Success)
            {
                string message = ParseMessage(result.JsonResult);

                throw new DataVaultBusinessException(
                          result.StatusCode,
                          message,
                          DataCommand.GetCommandString());
            }

            return(result.JsonResult);
        }