Skip to content

Use no-check exceptions instead of statically checked #10

@jrgkraus

Description

@jrgkraus

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?

Metadata

Metadata

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions