-
Notifications
You must be signed in to change notification settings - Fork 53
cx_assert does not exist #314
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hello cawoodmonads, yes, the reasoning behind this is as follows:
CLASS cx_xyz_assert DEFINITION PUBLIC
INHERITING FROM cx_no_check FINAL
CREATE PUBLIC.
PUBLIC SECTION.
METHODS constructor
IMPORTING previous LIKE previous OPTIONAL.
CLASS-METHODS assert_not_initial
IMPORTING VALUE(act) TYPE any.
" ...
ENDCLASS.
CLASS cx_xyz_assert IMPLEMENTATION.
METHOD constructor.
super->constructor( previous = previous ).
ENDMETHOD.
METHOD assert_not_initial.
IF act IS INITIAL.
RAISE EXCEPTION NEW cx_xyz_assert( ).
ENDIF.
ENDMETHOD.
" ...
ENDCLASS.
Kind regards, |
P.S.: Putting the "documentation" label, because it would certainly be helpful to have a better explanation within the cleanup rule (e.g. in the example code) |
Hi cawoodmonads, I meanwhile enhanced the examples of this cleanup rule with some explanation (similar to my comments above), so hopefully this is better understandable now. Thanks again for bringing it up – this is available now with version 1.18.0, which was just released! Kind regards, |
There is a check that no
ASSERT
is used but insteadcx_assert
. However the classcx_assert
does not exist in any SAP system we know of. How are users supposed to proceed? Create and configure azcx_assert
?The text was updated successfully, but these errors were encountered: