‎2007 May 10 2:31 PM
Hello,
I need to initialize a timestamp attribute (TIMESTAMPL) in an exception class. However the workbench tells me I'm not allowed to modify the constructor of an exception class. But I cannot initialize an attribute of type TIMESTAMPL with the VALUE clause of a DATA statement. So what is the right way to initialize complex attributes in an exception class when the constructror cannot be modified.
Regards Thomas
‎2007 May 10 2:34 PM
Well I should be more specific. I want to initialize the timestamp with the current timestamp value using GET TIME STAMP FIELD and adding the difference to the local time.
‎2023 Mar 21 10:43 AM
I had a similar issue, in my case I wanted to load domain texts for fixed value attributes.
It seems you cannot edit the constructor, but you can add a static factory method, and use "raise exception cx_example=>create( )" instead of "raise exception new" or "raise exception type"