-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Gateway: Propagate Error to the errorChannel
See SO for more info: https://stackoverflow.com/questions/64456946/handle-exceptions-errors-other-than-messagingexception-ie-other-error-excepti In the versions before `5.2.x` the `Error` was wrapped to the `MessagingException` in the `AbstractRequestHandlerAdvice` and this one was handled properly on the gateway level with its `errorChannel` configured * Fix `MessagingGatewaySupport` to catch all the `Throwable` and try to send them as `ErrorMessage` to the `errorChannel`. Otherwise unwrap returned `MessagingException` and re-throw an `Error` as is to keep the current behavior for non-handled exceptions * Do not wrap `Error` into a `MessagingException` and re-throw as is if there is no `errorChannel` **Cherry-pick to 5.3.x & 5.2.x**
- Loading branch information
1 parent
fb35a73
commit b94c20a
Showing
2 changed files
with
11 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters