71. EPMO Open Source Coordination Office Redaction File Detail Report

Produced by Araxis Merge on 4/12/2018 10:18:29 AM Central Daylight Time. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a modern standards-compliant browser. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.

71.1 Files compared

# Location File Last Modified
1 MSSRe Build 4.zip\Applications\OncoTrax-E40 ONC_Fault.cpp Tue Apr 10 19:43:41 2018 UTC
2 MSSRe Build 4.zip\Applications\OncoTrax-E40 ONC_Fault.cpp Wed Apr 11 17:41:54 2018 UTC

71.2 Comparison summary

Description Between
Files 1 and 2
Text Blocks Lines
Unchanged 2 226
Changed 1 2
Inserted 0 0
Removed 0 0

71.3 Comparison options

Whitespace
Character case Differences in character case are significant
Line endings Differences in line endings (CR and LF characters) are ignored
CR/LF characters Not shown in the comparison detail

71.4 Active regular expressions

No regular expressions were active.

71.5 Comparison detail

  1   /********* ********** ********** ********** ********** ********** ********** ********** /
  2   /*  Packag e:      ON C – Oncolo gy                                                   * /
  3   /*  Date C reated: Ju l 26,2004                                                       * /
  4   /*  Site N ame:    Hi nes OIFO                                                        * /
  5   /*    Developers    Sergey Gav rilov  PII                                             */
  6   /*  Descri ption:  Im plemetatio n of the g eneric exc eption (er ror descri ption)   * /
  7   /*                 cl ass for On cology Web -service                                  * /
  8   /********* ********** ********** ********** ********** ********** ********** ********** /
  9  
  10   #include " stdafx.h"
  11   #include " OncologyCG I.h"
  12  
  13   /********* ********** ********** ********** ********** ********** ********** ********** /
  14   /*                                  SOAP FA ULT CODES                                 * /
  15   /********* ********** ********** ********** ********** ********** ********** ********** /
  16  
  17   const char  FAULT_VER SION[]                        =  "VersionMi smatch";
  18   const char  FAULT_MUS T_UNDERSTA ND[]       = "MustUnd erstand";
  19   const char  FAULT_CLI ENT[]                         =  "Client";
  20   const char  FAULT_SER VER[]                         =  "Server";
  21  
  22   /********* ********** ********** ********** ********** ********** ********** ********** /
  23   /*                                   FAULT  TEMPLATES                                 * /
  24   /********* ********** ********** ********** ********** ********** ********** ********** /
  25  
  26   typedef st ruct {
  27           co nst char*  FaultCode;            // SOAP er ror code
  28           co nst char*  FaultStrin g;         // Error m essage
  29   } TFaultTe mplate;
  30  
  31   /*****  Th e getFault Template()  function  returns th e Fault te mplate for  the
  32                    prov ided error  code.
  33  
  34           an ErrorCOde      Error  code (nega tive integ er)
  35   */
  36   static TFa ultTemplat e* getFaul tTemplate( const int  anErrorCod e)
  37   {
  38           st atic TFaul tTemplate  Templates[ ] =              // ! !! Do not  change the  order of  records !! !
  39           {
  40                                                                                  { FAULT_ SERVER, "U nknown err or." },
  41                    /* E C_UNKNOWN_ METHOD     */      {  FAULT_CLIE NT, "Unkno wn HTTP re quest meth od." },
  42                    /* E C_UNSUP_ME THOD               */       { FA ULT_CLIENT , "Unsuppo rted HTTP  request me thod: \'%s \'." },
  43                    /* E C_UNKNOWN_ CONTENT    */      {  FAULT_CLIE NT, "Unkno wn content  type." },
  44                    /* E C_UNSUP_CO NTENT              */       { FA ULT_CLIENT , "Unsuppo rted conte nt type: \ '%s\'." },
  45                    /* E C_XMLBUF_A LLOC               */       { FA ULT_SERVER , "Cannot  allocate a  buffer fo r XML pars ing." },
  46                    /* E C_BAD_XML                     */       { FA ULT_CLIENT , "Incorre ctly forma tted reque st." },
  47                    /* E C_INVALID_ REQUEST    */      {  FAULT_CLIE NT, "Inval id/unsuppo rted reque st." },
  48                    /* E C_INVALID_ TABNUM     */      {  FAULT_CLIE NT, "Inval id table n umber." },
  49                    /* E C_SITE_HIS T                  */       { FA ULT_CLIENT , "Invalid  site (%s)  and/or hi stology (% s)." },
  50                    /* E C_CALC_WAR NINGS              */       { FA ULT_CLIENT , "CS calc ulation AP I returned  warning(s )." },
  51                    /* E C_CALC_ERR ORS                */       { FA ULT_CLIENT , "CS calc ulation AP I returned  error(s). " },
  52                    /* E C_SERVER_E XCEPTION   */      {  FAULT_SERV ER, "Serve r exceptio n." },
  53                    /* E C_NOT_ENOU GH_MEM     */      {  FAULT_SERV ER, "No en ough memor y for dyna mic variab le(s)." },
  54                    /* E C_EDITS_ER ROR                */       { FA ULT_SERVER , "Error c ode \'%d\'  was retur ned by the  %s." },
  55                    /* E C_EDITS_ER ROR_EX     */      {  FAULT_SERV ER, "Error  code \'%d \' was ret urned by t he %s (%s:  \'%s\')."  },
  56                    /* E C_INVALID_ EDITSCFG   */      {  FAULT_CLIE NT, "Inval id EDITS c onfigurati on name: \ '%s\'." },
  57                    /* E C_NEED_DIS CRIMINATOR  */     {  FAULT_CLIE NT, "Discr iminator n eeded for  site (%s)  and histol ogy (%s)."  },
  58                    /* E C_FOLDER_N OT_EXISTS  */      {  FAULT_SERV ER, "Outpu t path not  found: \' %s\'." }
  59           };
  60           in t i = -anE rrorCode;
  61           i  = (i > 0)  && (i <= s izeof(Temp lates)/siz eof(TFault Template))  ? i-1 : 0 ;
  62           re turn Templ ates + i;
  63   }
  64  
  65   /********* ********** ********** ********** ********** ********** ********** ********** /
  66   /*                               GENERIC ER ROR DESCRI PTOR                           * /
  67   /********* ********** ********** ********** ********** ********** ********** ********** /
  68  
  69   TONCFault: :TONCFault ()
  70   {
  71           Er rorCode =  0;
  72           Fa ultCode[0]  = '\0';
  73           Fa ultString[ 0] = '\0';
  74   }
  75  
  76   //***** CO NSTRUCTOR
  77  
  78   TONCFault: :TONCFault (const int  anErrorCo de,     .. .)
  79   {
  80           TO NCFault();
  81           va _list args ;
  82           va _start(arg s, anError Code);
  83  
  84           TF aultTempla te* ft = g etFaultTem plate(anEr rorCode);
  85   //JJB 1001 05 ->
  86           st rcpy_s(Fau ltCode, 20 , ft->Faul tCode);
  87           vs printf_s(F aultString , 200, ft- >FaultStri ng, args);
  88   //JJB 1001 05 <-
  89           Er rorCode =  anErrorCod e;
  90   }
  91  
  92   //***** WR ITES DETAI LS ABOUT T HE ERROR ( the <detai l> SECTION )
  93  
  94   void TONCF ault::outp utDetail()
  95   {
  96           if ( ErrorCod e != 0 )
  97                    prin tf("<RC>%d </RC>\n",  ErrorCode) ;
  98   }
  99  
  100   //***** WR ITES THE < soap:Fault > SECTION  CORRESPOND ING TO THE  ERROR TO  THE STDOUT
  101  
  102   void TONCF ault::outp ut()
  103   {
  104           if ( strlen(F aultCode)  > 0 )
  105           {
  106                    puts ("<soap:Fa ult>");
  107                    prin tf("<fault code>%s</f aultcode>\ n", FaultC ode);
  108                    prin tf("<fault string>%s< /faultstri ng>\n", Fa ultString) ;
  109                    puts ("<detail> ");
  110                    outp utDetail() ;
  111                    puts ("</detail >");
  112                    puts ("</soap:F ault>");
  113           }
  114   }