Class ExecutionDirectives

    • Constructor Detail

      • ExecutionDirectives

        public ExecutionDirectives()
    • Method Detail

      • handleExceptions

        public RouteAdapter handleExceptions​(ExceptionHandler handler,
                                             java.util.function.Supplier<Route> inner)
        Transforms exceptions thrown during evaluation of its inner route using the given ExceptionHandler.
        Parameters:
        handler - (undocumented)
        inner - (undocumented)
        Returns:
        (undocumented)
      • handleRejections

        public RouteAdapter handleRejections​(RejectionHandler handler,
                                             java.util.function.Supplier<Route> inner)
        Transforms rejections produced by its inner route using the given RejectionHandler.
        Parameters:
        handler - (undocumented)
        inner - (undocumented)
        Returns:
        (undocumented)