Hello Werner,

> imagine you have a utility class - just class methods with loops to
> clean up some data...
> 
> how to handle errors - just display them -
> in an abstract class
> 
>  Class GAS.ConversionUtility [ Abstract, ProcedureBlock ]
> {
> 
> 
> set sc = obj.%Save()
> if %SYSTEM.Status.IsErr(sc) {
>     do $system.OBJ.DisplayError(sc)
>     write !
> 
> resuls to runtime error:
> 
> if %SYSTEM.Status.IsErr(sc) {
>  ^
><UNDEFINED>zsetCategory+6^GAS.ConversionUtility.2

you can test %Status to true/false.

d:'sc $system.OBJ.DisplayError(sc)

I think this it the easiest way!

HTH
Florian


Reply via email to