throw ===== .. include:: /ref/targets/autogen/descriptions/throw.txt .. contents:: Configuration options --------------------- type ~~~~ Checks the type of the value that is being thrown. .. code-block:: yaml search: throw: type: "RuntimeException" .. code-block:: java if (!this.isValid()) { throw new RuntimeException(); } throw new CustomException(); .. seealso:: The examples above use shorthands, see :doc:`type` target for more advanced configurations value ~~~~~ Checks the value that is being thrown. .. code-block:: yaml search: throw: value: reference: name: "e" .. code-block:: java Exception e = new RuntimeException(); throw e; .. include:: /ref/targets/partials/searcher.txt