17 lines
456 B
ReStructuredText
17 lines
456 B
ReStructuredText
.. _-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
|