mirror of
https://github.com/abap2UI5/abap2UI5.git
synced 2025-04-30 07:16:10 +08:00
catch cx_sy_rtti_syntax_error (#1081)
This commit is contained in:
parent
b9177d402b
commit
79c078021b
|
@ -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.
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user