Index: TECH/Persistent.cls.xml =================================================================== diff -u -r42 -r432 --- TECH/Persistent.cls.xml (.../Persistent.cls.xml) (revision 42) +++ TECH/Persistent.cls.xml (.../Persistent.cls.xml) (revision 432) @@ -5,6 +5,10 @@ 1 %Persistent,TECH.IPersistent + +Error_bij_OnDelete + + 1 Id:%String @@ -65,7 +69,12 @@ #dim Status As %Status = ..%DeleteId(Id) If ($$$ISERR(Status)) { - Do ##class(TECH.ExceptionHandler).Throw(##class(TECH.Exceptions.StatusException).%New(##class(TECH.enu.ExceptionCode).GeneralError(),"Kon object van type "_..%ClassName(1)_" met id "_Id_" niet verwijderen",Status)) + If Status=$$$ERROR($$$GeneralError,..#ErrorBijOnDelete) { + Do ##class(TECH.ExceptionHandler).Rethrow() + } + Else { + Do ##class(TECH.ExceptionHandler).Throw(##class(TECH.Exceptions.StatusException).%New(##class(TECH.enu.ExceptionCode).GeneralError(),"Kon object van type "_..%ClassName(1)_" met id "_Id_" niet verwijderen",Status)) + } } ]]> @@ -77,12 +86,18 @@ oid:%ObjectIdentity %Status