spring-projects / spring-projects/spring-integration

Exception Propagation From Server to Client [INT-3371]

Open
#7,341 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

in: core type: enhancement
Dominant language
Java
Stars
1.6k
Forks
1.2k
Avg merge
17h 48m
Merged PRs (30d)
62

Description

David P Shenba opened INT-3371 and commented

I wish there could be a common exception handling mechanism in Spring Integration. Much like the client Gateway Interface method should be declared with "throws custom-wrapper-exception". In the server side, whenever an exception happens, using interceptors or transformers or automatically, the exceptions should be wrapped to target exception type and sent back to client. In the client side, wherever the gateway method is invoked, it should be surrounded with try catch or the exception should be thrown to next layer. By this there will be clean exception handling in conventional way, instead of getting exception as a normal reply and trying to cast/interpret it in client side.


Reference URL: http://forum.spring.io/forum/spring-projects/integration/jms/747553-exception-handling-in-jms-with-spring-integration

1 votes, 3 watchers

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the linked Spring forum discussion and the server/client gateway behavior described in the issue; no files or tests are named. Clarify the intended exception contract and affected gateway paths, then verify that the agreed behavior propagates server failures as client exceptions rather than normal replies.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, spring
Domain
api, backend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.