OpenMRS

StartupFilter should not throw generic exceptions

Change this line https://github.com/openmrs/openmrs-core/blob/master/web/src/main/java/org/openmrs/web/filter/StartupFilter.java#L274 to throw an APIException instead of RuntimeException Background Information: Generic exceptions should never be thrown Using such generic exceptions as Error, RuntimeException, Throwable, and Exception prevents calling methods from handling true, system-generated exceptions differently than application-generated errors.

Task tags

  • coding

Students who completed this task

Bartłomiej Rasztabiga

Task type

  • code Code
close

2017