Uploaded image for project: 'Spring Integration'
  1. Spring Integration
  2. INT-3371

Exception Propagation From Server to Client

    XMLWordPrintable

    Details

      Description

      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.

        Attachments

          Activity

            People

            Assignee:
            grussell Gary Russell
            Reporter:
            davidshenba David P Shenba
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated: