2020-12-21 15:38:52 +01:00
|
|
|
include::../description.adoc[]
|
|
|
|
|
|
|
|
== Noncompliant Code Example
|
|
|
|
|
|
|
|
----
|
|
|
|
try.
|
|
|
|
if ABS( NUMBER ) > 100.
|
|
|
|
write / 'Number is large'.
|
|
|
|
endif.
|
|
|
|
catch CX_SY_ARITHMETIC_ERROR into OREF.
|
|
|
|
endtry.
|
|
|
|
----
|
|
|
|
|
|
|
|
== Compliant Solution
|
|
|
|
|
|
|
|
----
|
|
|
|
try.
|
|
|
|
if ABS( NUMBER ) > 100.
|
|
|
|
write / 'Number is large'.
|
|
|
|
endif.
|
|
|
|
catch CX_SY_ARITHMETIC_ERROR into OREF.
|
|
|
|
write / OREF->GET_TEXT( ).
|
|
|
|
endtry.
|
|
|
|
----
|
|
|
|
|
|
|
|
== Exceptions
|
|
|
|
|
|
|
|
When a block contains a comment, it is not considered to be empty.
|
|
|
|
|
|
|
|
include::../see.adoc[]
|
2021-06-02 20:44:38 +02:00
|
|
|
|
|
|
|
ifdef::rspecator-view[]
|
|
|
|
== Comments And Links
|
|
|
|
(visible only on this page)
|
|
|
|
|
|
|
|
include::../comments-and-links.adoc[]
|
|
|
|
endif::rspecator-view[]
|