-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Description
With the exceptions used in the program deriving from CX_STATIC_CHECK, my coding becomes quite complicated:
if read_result->is_ok( ).
try.
queue_lines = read_result->get_value( )->*.
catch zcx_result_is_not_ok.
raise exception zcx_fatal...
endtry.
since I already do a check if the result is OK, it seems quite unnecessary to be forced by the static checked exception to do another check with TRY/CATCH. As far as I understood, the goal is to reduce TRY/CATCH - noise in the coding. Wouldn't it be better to turn the exceptions into CX_NO_CHECK types?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels