I am calling the cl_abap_typedescr=>describe_by_name
method. It could possibly throw a TYPE_NOT_FOUND
exception. I am coming form c# and in c# it would be quite easy to catch such an error. But in ABAP i am not able to catch the exception.
It starts with the fact that I can't use the TYPE_NOT_FOUND
exception object in my code. It just does not exist. It continues with the fact that catching CX_ROOT
won't help either. It just ignores my try catch clause and crashes:
TRY .
descr_ref0 ?= cl_abap_typedescr=>describe_by_name('iabc1').
CATCH cx_root.
BREAK-POINT.
ENDTRY.