...
The catch
clause is permitted by exception EXC14-EX0 of rule ERR14-J. Do not catch RuntimeExceptionNullPointerException as it serves as a general filter passing exceptions to the MyExceptionReporter
class, which is dedicated to safely reporting exceptions, as recommended by rule ERR00-J. Do not suppress or ignore checked exceptions. While this code only throws IllegalArgumentException
the catch clause is general enough to handle any exception, in case the try
block should be modified to throw other exceptions.
...