catch cx_sy_rtti_syntax_error (#1081)

This commit is contained in:
Christian Günter 2024-04-16 17:31:57 +02:00 committed by GitHub
parent b9177d402b
commit 79c078021b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -715,14 +715,19 @@ CLASS z2ui5_cl_util_api IMPLEMENTATION.
METHOD rtti_check_class_exists.
cl_abap_classdescr=>describe_by_name(
EXPORTING
p_name = val
EXCEPTIONS
type_not_found = 1 ).
IF sy-subrc = 0.
result = abap_true.
ENDIF.
TRY.
cl_abap_classdescr=>describe_by_name(
EXPORTING
p_name = val
EXCEPTIONS
type_not_found = 1 ).
IF sy-subrc = 0.
result = abap_true.
ENDIF.
CATCH cx_root.
" cx_sy_rtti_syntax_error
ENDTRY.
ENDMETHOD.