2014-12-18 09:25:33 +01:00
|
|
|
.. _-handleRejections-:
|
|
|
|
|
|
|
|
|
|
handleRejections
|
|
|
|
|
================
|
|
|
|
|
|
|
|
|
|
Signature
|
|
|
|
|
---------
|
|
|
|
|
|
2015-06-19 15:35:24 +02:00
|
|
|
.. includecode2:: /../../akka-http/src/main/scala/akka/http/scaladsl/server/directives/ExecutionDirectives.scala
|
2014-12-18 09:25:33 +01:00
|
|
|
:snippet: handleRejections
|
|
|
|
|
|
|
|
|
|
Description
|
|
|
|
|
-----------
|
|
|
|
|
|
|
|
|
|
Using this directive is an alternative to using a global implicitly defined ``RejectionHandler`` that
|
|
|
|
|
applies to the complete route.
|
|
|
|
|
|
2015-10-08 16:26:29 +02:00
|
|
|
See :ref:`rejections-scala` for general information about options for handling rejections.
|
2014-12-18 09:25:33 +01:00
|
|
|
|
|
|
|
|
Example
|
|
|
|
|
-------
|
|
|
|
|
|
2015-05-11 23:05:18 +02:00
|
|
|
.. includecode2:: ../../../../code/docs/http/scaladsl/server/directives/ExecutionDirectivesExamplesSpec.scala
|
2014-12-18 09:25:33 +01:00
|
|
|
:snippet: handleRejections
|