mirror of
https://github.com/abap2UI5/abap2UI5.git
synced 2025-04-30 09:06:16 +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.
|
METHOD rtti_check_class_exists.
|
||||||
|
|
||||||
cl_abap_classdescr=>describe_by_name(
|
TRY.
|
||||||
EXPORTING
|
cl_abap_classdescr=>describe_by_name(
|
||||||
p_name = val
|
EXPORTING
|
||||||
EXCEPTIONS
|
p_name = val
|
||||||
type_not_found = 1 ).
|
EXCEPTIONS
|
||||||
IF sy-subrc = 0.
|
type_not_found = 1 ).
|
||||||
result = abap_true.
|
IF sy-subrc = 0.
|
||||||
ENDIF.
|
result = abap_true.
|
||||||
|
ENDIF.
|
||||||
|
|
||||||
|
CATCH cx_root.
|
||||||
|
" cx_sy_rtti_syntax_error
|
||||||
|
ENDTRY.
|
||||||
|
|
||||||
ENDMETHOD.
|
ENDMETHOD.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user