protected boolean internalResume(Throwable exc, Consumer<Throwable> onComplete) { ResteasyContext.pushContextDataMap(contextDataMap); dispatcher.asynchronousExceptionDelivery(request, response, exc, t -> { onComplete.accept(t); completionCallbacks(exc); }); return true; }
public void asynchronousExceptionDelivery(HttpRequest request, HttpResponse response, Throwable exception, Consumer<Throwable> onComplete) { try { pushContextObjects(request, response); writeException(request, response, exception, t -> { if(t != null) unhandledAsynchronousException(response, t); onComplete.accept(null); ResteasyContext.removeContextDataLevel(); }); } catch (Throwable ex) { unhandledAsynchronousException(response, ex); onComplete.accept(ex); } }
protected boolean internalResume(Throwable exc, Consumer<Throwable> onComplete) { ResteasyProviderFactory.pushContextDataMap(contextDataMap); dispatcher.asynchronousExceptionDelivery(request, response, exc, t -> { onComplete.accept(t); completionCallbacks(exc); }); return true; }
protected boolean internalResume(Throwable exc, Consumer<Throwable> onComplete) { ResteasyContext.pushContextDataMap(contextDataMap); dispatcher.asynchronousExceptionDelivery(request, response, exc, t -> { onComplete.accept(t); completionCallbacks(exc); }); return true; }
public void asynchronousExceptionDelivery(HttpRequest request, HttpResponse response, Throwable exception, Consumer<Throwable> onComplete) { try { pushContextObjects(request, response); writeException(request, response, exception, t -> { if(t != null) unhandledAsynchronousException(response, t); onComplete.accept(null); ResteasyContext.removeContextDataLevel(); }); } catch (Throwable ex) { unhandledAsynchronousException(response, ex); onComplete.accept(ex); } }
public void asynchronousExceptionDelivery(HttpRequest request, HttpResponse response, Throwable exception, Consumer<Throwable> onComplete) { try { pushContextObjects(request, response); writeException(request, response, exception, t -> { if(t != null) unhandledAsynchronousException(response, t); onComplete.accept(null); ResteasyProviderFactory.removeContextDataLevel(); }); } catch (Throwable ex) { onComplete.accept(ex); unhandledAsynchronousException(response, ex); } }