241. EPMO Open Source Coordination Office Redaction File Detail Report

Produced by Araxis Merge on 6/11/2019 10:54:14 AM Eastern 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.

241.1 Files compared

# Location File Last Modified
1 HTRE_P3_v14.5_iter_4_build_14.zip\java\gov\va\med\fw\rule\impl SimpleRuleExceptionHandler.java Wed May 29 15:26:14 2019 UTC
2 HTRE_P3_v14.5_iter_4_build_14.zip\java\gov\va\med\fw\rule\impl SimpleRuleExceptionHandler.java Mon Jun 10 19:27:47 2019 UTC

241.2 Comparison summary

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

241.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

241.4 Active regular expressions

No regular expressions were active.

241.5 Comparison detail

  1   /**
  2    * Created  on 4:50:5 5 PM Jan 3 , 2005
  3    * Project : Framewor k
  4    * 
  5    * @author   DN S
  6    */
  7   package go v.va.med.f w.rule.imp l;
  8  
  9   // ILOG cl asses
  10   import org .apache.co mmons.logg ing.Log;
  11   import org .apache.co mmons.logg ing.LogFac tory;
  12  
  13   import gov .va.med.fw .rule.Rule ExceptionH andler;
  14  
  15   /**
  16    * A gener ic rule ex ception ha ndler that  handles u ser except ion trigge red in an
  17    * evaluat ion or act ion part o f a rule.  This excep tion handl er is set  into a
  18    * IlrCont ext of a r ule set on ly if the  exception  handler is  set in a  Rule
  19    * wrapper  class thr ough its r ule interf ace.
  20    */
  21   public cla ss SimpleR uleExcepti onHandler  implements  RuleExcep tionHandle r {
  22  
  23           /* *
  24            *  An instan ce of seri alVersionU ID
  25            * /
  26           pr ivate stat ic final l ong serial VersionUID  = 5121662 0215960484 77L;
  27           /* *
  28            *  An instan ce of a lo g componen t used for  logging i nformation
  29            * /
  30           pr otected Lo g logger =  LogFactor y.getLog(g etClass()) ;
  31  
  32           /* *
  33            *  A default  construct or
  34            * /
  35           pu blic Simpl eRuleExcep tionHandle r() {
  36                    supe r();
  37           }
  38  
  39           /* *
  40            *  @see gov. va.med.fw. rule.RuleE xceptionHa ndler#hand leConditio nException (java.lang .Exception )
  41            * /
  42           pu blic boole an handleC onditionEx ception(Ex ception e)  {
  43                    logE xception(e );
  44                    retu rn false;
  45           }
  46  
  47           /* *
  48            *  @see gov. va.med.fw. rule.RuleE xceptionHa ndler#hand leActionEx ception(ja va.lang.Ex ception)
  49            * /
  50           pu blic void  handleActi onExceptio n(Exceptio n e) {
  51                    logE xception(e );
  52                    if ( e instance of Runtime Exception)  {
  53                             throw  (RuntimeEx ception) e ;
  54                    }
  55           }
  56  
  57           /* *
  58            *  @see gov. va.med.fw. rule.RuleE xceptionHa ndler#hand leInternal Exception( java.lang. Exception)
  59            * /
  60           pu blic void  handleInte rnalExcept ion(Except ion e) {
  61                    logE xception(e );
  62                    if ( e instance of Runtime Exception)  {
  63                             throw  (RuntimeEx ception) e ;
  64                    }
  65           }
  66  
  67           /* *
  68            *  Log an ex ception. I f an error  level is  set, an ex ception an d its memb er
  69            *  (method o r field) f rom which  an excepti on is trig gered is l ogged
  70            *  
  71            *  @param e
  72            *              An excep tion to be  logged
  73            * /
  74           pr otected vo id logExce ption(Exce ption e) {
  75                    if ( logger.isD ebugEnable d()) {
  76                             logger .debug("A  root cause  exception : " + e.ge tCause().g etClass(). getName()) ;
  77                             logger .debug("Ex ception de tails: ",  e);
  78                    }
  79           }
  80   }