Index: TECH/OperatieScope.cls.xml =================================================================== diff -u -r1074 -r1434 --- TECH/OperatieScope.cls.xml (.../OperatieScope.cls.xml) (revision 1074) +++ TECH/OperatieScope.cls.xml (.../OperatieScope.cls.xml) (revision 1434) @@ -132,8 +132,8 @@ @@ -149,11 +149,17 @@ } If (0 = ..NestingNiveau) { - Do ..OperatieGefaald(Exception) + Do ..OperatieGefaald(.Exception) } - //Set $ECODE = Exception - $$$ThrowError($$$errGeneralError,Exception) + If $Data(Exception) + { + If ('$IsObject(Exception)) + { + Set Exception = ##class(TECH.Exceptions.BaseException).%New(##class(TECH.enu.ExceptionCode).GeneralError,Exception) + } + Do ##class(TECH.ExceptionHandler).Throw(Exception) + } ]]> Index: APPS/PM/KenmMWFPlugin.cls.xml =================================================================== diff -u -r1425 -r1434 --- APPS/PM/KenmMWFPlugin.cls.xml (.../KenmMWFPlugin.cls.xml) (revision 1425) +++ APPS/PM/KenmMWFPlugin.cls.xml (.../KenmMWFPlugin.cls.xml) (revision 1434) @@ -62,16 +62,16 @@ Quit Fout Set $ZTRAP = "" + Set Exception = ##class(TECH.ExceptionHandler).Catch() Do OperatieScope.Gefaald() + Do ##class(vhLib.Logger).%New(..#ApplicatieNaam).Error("Exceptie verwerking",Exception.ToString()) ]]> KenmerkModifiedEventData:TECH.Events.KenmerkModifiedEventData 1 + +Object:%Persistent,PropertyNaam:%String +1 +%String + + + GroepID:%String 1 @@ -288,6 +305,11 @@ Set ProductGroep = $Extract(GroepID,1,3) Set Rol = $Extract(GroepID,4,$Length(GroepID)) + If ('##class(%Dictionary.CompiledClass).%ExistsId("DOM.PM.Maatwerk.Calc.HF.impl."_ProductGroep_".HalffabClassNameFactory")) + { + Do ##class(TECH.ExceptionHandler).Throw(##class(TECH.Exceptions.BaseException).%New(##class(TECH.enu.ExceptionCode).InvalidInput(),"Er werd geen halffab classname factory gevonden voor de productgroep """_ProductGroep_"""")) + } + Set HalffabClassNameFactory = $zobjclassmethod("DOM.PM.Maatwerk.Calc.HF.impl."_ProductGroep_".HalffabClassNameFactory","%New") Quit HalffabClassNameFactory.GeefHalffabKlasseNaamVoor(Rol) ]]>