mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-22 22:19:03 +00:00
Timeout exceptions as RuntimeExceptions
Issue: SPR-14669
This commit is contained in:
+3
-1
@@ -180,7 +180,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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user