Produced by Araxis Merge on 12/13/2018 10:35:29 AM Eastern Standard 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.
| # | Location | File | Last Modified |
|---|---|---|---|
| 1 | v12.5_iter_7_build 51.zip\TRM_Upgrade\src\main\java\gov\va\med\fw\rule\impl | SimpleRuleExceptionHandler.java | Fri Dec 7 17:36:34 2018 UTC |
| 2 | v12.5_iter_7_build 51.zip\TRM_Upgrade\src\main\java\gov\va\med\fw\rule\impl | SimpleRuleExceptionHandler.java | Wed Dec 12 19:46:45 2018 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 2 | 158 |
| Changed | 1 | 2 |
| Inserted | 0 | 0 |
| Removed | 0 | 0 |
| 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 |
No regular expressions were active.
| 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 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.