31 lines
508 B
Plaintext
31 lines
508 B
Plaintext
![]() |
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[]
|