Timeout exceptions as RuntimeExceptions

Issue: SPR-14669
(cherry picked from commit e947363)
This commit is contained in:
Juergen Hoeller
2016-09-15 08:54:17 +02:00
parent 9fa2a46d35
commit c9943aacc5
3 changed files with 7 additions and 4 deletions

View File

@@ -186,7 +186,9 @@ public abstract class ResponseEntityExceptionHandler {
(AsyncRequestTimeoutException) ex, headers, status, request);
}
else {
logger.warn("Unknown exception type: " + ex.getClass().getName());
if (logger.isWarnEnabled()) {
logger.warn("Unknown exception type: " + ex.getClass().getName());
}
HttpStatus status = HttpStatus.INTERNAL_SERVER_ERROR;
return handleExceptionInternal(ex, null, headers, status, request);
}