private IAsyncHandler<Throwable> createPolicyErrorHandler() {
        return error -> resultHandler.handle(AsyncResultImpl.<IEngineResult> create(error));
    }
Creates the handler to use when an error is detected during the processing
of a chain.
gateway/engine/core/src/main/java/io/apiman/gateway/engine/impl/ApiRequestExecutorImpl.java