.. _-handleRejections-java-: handleRejections ================ Description ----------- Using this directive is an alternative to using a global implicitly defined ``RejectionHandler`` that applies to the complete route. See :ref:`rejections-java` for general information about options for handling rejections. Example ------- .. includecode:: ../../../../code/docs/http/javadsl/server/directives/ExecutionDirectivesExamplesTest.java#handleRejections