if sy-subrc <> 0.
message e000(/bshcn/co) with sy-subrc.
endif.
try.
l_t = 1 / 0.
catch cx_sy_arithmetic_error into oref.
text = oref->get_text( ).
catch cx_sy_conversion_error into oref.
text = oref->get_text( ).
catch cx_sy_CREATE_ERROR into oref.
text = oref->get_text( ).
catch cx_sy_DATA_ACCESS_ERROR into oref.
text = oref->get_text( ).
catch cx_sy_DYN_CALL_ERROR into oref.
text = oref->get_text( ).
catch cx_sy_FILE_ACCESS_ERROR into oref.
text = oref->get_text( ).
catch cx_sy_IMPORT_MISMATCH_ERROR into oref.
text = oref->get_text( ).
catch cx_sy_LOCALIZATION_ERROR into oref.
text = oref->get_text( ).
catch cx_sy_REMOTE_CALL_ERROR into oref.
text = oref->get_text( ).
catch cx_root into oref.
text = oref->get_text( ).
endtry.
message e000(/bshcn/co) with text.