class RootRouteExceptionHandler {

    private Route handleDittoRuntimeException(final DittoRuntimeException dittoRuntimeException) {
        logException(dittoRuntimeException);
        return Directives.complete(dreToHttpResponse.apply(dittoRuntimeException));
    }

    private  RootRouteExceptionHandler(final Function<DittoRuntimeException, HttpResponse> dreToHttpResponse);

}