Skip to content

Add context to StaleAsyncWebRequestException to allow for better exception handling [SPR-9369] #14006

@spring-projects-issues

Description

@spring-projects-issues

Phil Webb opened SPR-9369 and commented

The StaleAsyncWebRequestException added as part of #13162 is thrown when an async request has gone stale. Since the exception can be handled using the usual MVC semantics it might be useful to add more context to the exception. One option might be to add a get getSource() method that could return the Callable or DeferredResult object that was returned from the original @Controller method.

An example use case for this might be to send a user to a user an email if a timeout occurs.


Affects: 3.1.1

Issue Links:

Metadata

Metadata

Assignees

Labels

in: webIssues in web modules (web, webmvc, webflux, websocket)status: invalidAn issue that we don't feel is valid

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions