Hello,
My Class method throws 3 different errors. I created an Exception Class (subclass of CX_BO_ERROR) with those 3 exceptions: EX1, EX2 & EX3
Now I am raising the exceptions as below:
WHEN 1.
RAISE EXCEPTION TYPE ZCX_WF_EXCEPTIONS_WITH_TEXT
EXPORTING TEXTID = ZCX_WF_EXCEPTIONS_WITH_TEXT=>EX1
INDX1 = INDX1.
WHEN 2.
RAISE EXCEPTION TYPE ZCX_WF_EXCEPTIONS_WITH_TEXT
EXPORTING TEXTID = ZCX_WF_EXCEPTIONS_WITH_TEXT=>EX2
INDX1 = INDX1.
WHEN 3.
RAISE EXCEPTION TYPE ZCX_WF_EXCEPTIONS_WITH_TEXT
EXPORTING TEXTID = ZCX_WF_EXCEPTIONS_WITH_TEXT=>EX3
INDX1 = IND
I added the name of Exception Class in the Exception tab, (which allows to add only once) but it is showing only 1 additional Outcome on the activity.
I need 3 Outcomes on the Activity based on 3 errors (I need to model them differently). Can I do this using the same exception class I created (ZCX_WF_EXCEPTIONS_WITH_TEXT) or I have to create one class for each error.