Index: APPS/Halux/PPS/Activiteit/impl/TAOR/LijstVerwerkers/KlantEtiketten/PrintEtiketten.cls.xml
===================================================================
diff -u -r32902 -r32907
--- APPS/Halux/PPS/Activiteit/impl/TAOR/LijstVerwerkers/KlantEtiketten/PrintEtiketten.cls.xml (.../PrintEtiketten.cls.xml) (revision 32902)
+++ APPS/Halux/PPS/Activiteit/impl/TAOR/LijstVerwerkers/KlantEtiketten/PrintEtiketten.cls.xml (.../PrintEtiketten.cls.xml) (revision 32907)
@@ -248,7 +248,7 @@
Try {
Set KarVolgNummer = ..AssemblageKarRepository.GeefKarVolgnummerViaSequentieNr(UitvoeringInfo.BatchID, UitvoeringInfo.SequentieNummer)
} Catch {
- Do ##class(TECH.ExceptionHandler).Catch()
+ Do ##class(TECH.ExceptionHandler).Catch("APPS.Halux.PPS.TAORProductie.impl.AssemblageKarRepository.Exceptie.KarNietGevondenExceptie")
}
Quit KarVolgNummer
Index: APPS/Halux/PPS/TAORProductie/impl/AssemblageKarRepository.cls.xml
===================================================================
diff -u -r30365 -r32907
--- APPS/Halux/PPS/TAORProductie/impl/AssemblageKarRepository.cls.xml (.../AssemblageKarRepository.cls.xml) (revision 30365)
+++ APPS/Halux/PPS/TAORProductie/impl/AssemblageKarRepository.cls.xml (.../AssemblageKarRepository.cls.xml) (revision 32907)
@@ -127,16 +127,19 @@
#dim ResultSet As TECH.ResultSet = ..QueryAPI.GetDynamicResultSet(Query,Params)
#dim VolgNummer As TECH.Integer = 0
#dim IsGevonden As %Boolean = $$$False
- While ResultSet.Next() && $$$Not(IsGevonden) {
+
+ While (ResultSet.Next() && $$$Not(IsGevonden)) {
Set VolgNummer = VolgNummer + 1
If ResultSet.GetDataByName("Kar") = KarID {
Set IsGevonden = $$$True
}
}
+
If $$$Not(IsGevonden) {
- Set Exceptie = ##class(TECH.Exceptions.InvalidInputException).%New("Voor de batch '"_BatchID_"' is er geen kar met ID '"_KarID_"' gevonden.")
+ #dim Exceptie As TECH.Exceptions.Exception = ##class(APPS.Halux.PPS.TAORProductie.impl.AssemblageKarRepository.Exceptie.KarNietGevondenExceptie).%New(KarID, BatchID)
Do ##class(TECH.ExceptionHandler).Throw(Exceptie)
}
+
Quit VolgNummer
]]>
Index: APPS/Halux/PPS/TAORProductie/impl/AssemblageKarRepository/Exceptie/KarNietGevondenExceptie.cls.xml
===================================================================
diff -u
--- APPS/Halux/PPS/TAORProductie/impl/AssemblageKarRepository/Exceptie/KarNietGevondenExceptie.cls.xml (revision 0)
+++ APPS/Halux/PPS/TAORProductie/impl/AssemblageKarRepository/Exceptie/KarNietGevondenExceptie.cls.xml (revision 32907)
@@ -0,0 +1,55 @@
+
+
+
+
+1
+TECH.Exceptions.AbstractOmschrijvingException
+
+
+TECH.String
+1
+
+
+
+TECH.String
+1
+
+
+
+KarID:TECH.String,BatchID:TECH.String
+%Status
+
+
+
+
+%String
+
+
+
+
+TECH.enu.ExceptionCode
+
+
+
+
+TECH.String
+
+
+
+
+TECH.String
+
+
+
+
+
+
Index: vhTest/Fake/APPS/Halux/PPS/TAORProductie/impl/AssemblageKarRepository.cls.xml
===================================================================
diff -u -r30365 -r32907
--- vhTest/Fake/APPS/Halux/PPS/TAORProductie/impl/AssemblageKarRepository.cls.xml (.../AssemblageKarRepository.cls.xml) (revision 30365)
+++ vhTest/Fake/APPS/Halux/PPS/TAORProductie/impl/AssemblageKarRepository.cls.xml (.../AssemblageKarRepository.cls.xml) (revision 32907)
@@ -19,14 +19,12 @@
BatchID:%String
-
+
BatchID:%String
-
+