|
|
@ -292,14 +292,12 @@ public class DeferredResult<T> { |
|
|
|
} |
|
|
|
} |
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public <S> boolean handleError(NativeWebRequest request, DeferredResult<S> deferredResult, Throwable t) { |
|
|
|
public <S> boolean handleError(NativeWebRequest request, DeferredResult<S> deferredResult, Throwable t) { |
|
|
|
boolean continueProcessing = true; |
|
|
|
|
|
|
|
try { |
|
|
|
try { |
|
|
|
if (errorCallback != null) { |
|
|
|
if (errorCallback != null) { |
|
|
|
errorCallback.accept(t); |
|
|
|
errorCallback.accept(t); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
finally { |
|
|
|
finally { |
|
|
|
continueProcessing = false; |
|
|
|
|
|
|
|
try { |
|
|
|
try { |
|
|
|
setResultInternal(t); |
|
|
|
setResultInternal(t); |
|
|
|
} |
|
|
|
} |
|
|
@ -307,7 +305,7 @@ public class DeferredResult<T> { |
|
|
|
logger.debug("Failed to handle error result", ex); |
|
|
|
logger.debug("Failed to handle error result", ex); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
return continueProcessing; |
|
|
|
return false; |
|
|
|
} |
|
|
|
} |
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public <S> void afterCompletion(NativeWebRequest request, DeferredResult<S> deferredResult) { |
|
|
|
public <S> void afterCompletion(NativeWebRequest request, DeferredResult<S> deferredResult) { |
|
|
|