Details
-
Bug
-
Status: Closed
-
Should
-
Resolution: Fixed
-
None
Description
Generic Exception thrown by OrderService.discontinueOrder
The throws clause should be removed.
Sonar reports this as major:
https://ci.openmrs.org/sonar/drilldown/issues/1865?&rule=squid%3AS00112&rule_sev=MAJOR&severity=MAJOR
checkstyle.xml configuration does not catch this case though
https://github.com/openmrs/openmrs-core/blob/2.0.x/tools/src/main/resources/checkstyle/openmrs-checkstyle.xml#L211-L215
so maybe checkstyle config should also be adjusted.
see discussion:
https://talk.openmrs.org/t/why-does-orderservice-discontinueorder-throws-exception/7446