Skip to content

Commit cb40b21

Browse files
committed
Improve usage example and fix wrong exception
1 parent 1ef7f94 commit cb40b21

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sap-abap/services/cpd/zcl_aws1_cpd_actions.clas.abap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ CLASS ZCL_AWS1_CPD_ACTIONS IMPLEMENTATION.
3636
iv_text = lv_text
3737
).
3838

39-
MESSAGE 'Detected sentiment.' TYPE 'I'.
39+
MESSAGE |Detected sentiment: { oo_result->get_sentiment( ) }| TYPE 'I'.
4040

41-
CATCH /aws1/cx_cpdserverexc INTO DATA(lo_cpdex) .
41+
CATCH /aws1/cx_cpdtextsizelmtexcdex INTO DATA(lo_cpdex) .
4242
MESSAGE 'The size of the input text exceeds the limit. Use a smaller document.' TYPE 'E'.
4343

4444
ENDTRY.

0 commit comments

Comments
 (0)