20 lines
697 B
ReStructuredText
20 lines
697 B
ReStructuredText
|
|
.. _-cancelRejection-java-:
|
||
|
|
|
||
|
|
cancelRejection
|
||
|
|
===============
|
||
|
|
|
||
|
|
Description
|
||
|
|
-----------
|
||
|
|
|
||
|
|
Adds a ``TransformationRejection`` cancelling all rejections equal to the
|
||
|
|
given one to the rejections potentially coming back from the inner route.
|
||
|
|
|
||
|
|
Read :ref:`rejections-java` to learn more about rejections.
|
||
|
|
|
||
|
|
For more advanced handling of rejections refer to the :ref:`-handleRejections-java-` directive
|
||
|
|
which provides a nicer DSL for building rejection handlers.
|
||
|
|
|
||
|
|
Example
|
||
|
|
-------
|
||
|
|
TODO: Example snippets for JavaDSL are subject to community contributions! Help us complete the docs, read more about it here: `write example snippets for Akka HTTP Java DSL #20466 <https://github.com/akka/akka/issues/20466>`_.
|