catchblock ========== .. include:: /ref/targets/autogen/descriptions/catchblock.txt .. contents:: Configuration options --------------------- parameterName ~~~~~~~~~~~~~ The ``parameterName`` checks the name of the exception variable defined inside the ``catchblock`` .. code-block:: yaml search: catchblock: parameterName: others .. code-block:: java :emphasize-lines: 5-7 try { methodCallThatThrowsException(); } catch (RuntimeException runtimeException) { // handle exception } catch (Exception others) { // handle exception } .. _catchblock_parameterType: parameterType ~~~~~~~~~~~~~ Checks the type of the exception variable defined inside the catch block. .. code-block:: yaml search: catchblock: paramterType: InvocationTargetException .. code-block:: java :emphasize-lines: 3 try { methodCallThatThrowsException(); } catch (InvocationTargetException e) { } catch (Throwable e) { } .. include:: /ref/targets/partials/searcher.txt