Announcement Announcement Module
Collapse
No announcement yet.
Exceptions and Spring's HttpInvoker Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Exceptions and Spring's HttpInvoker

    Hi,

    Are there any special requirements in terms of declared and runtime exceptions for the services that are remotely exposed using HttpInvoker.

    For example (abbreviated):
    Code:
    public class AcountService implements AccountService
    ...
       public void setAccountNumber( String AccountNumber )
       throws AccountNumberNotValid{
            
           ... somewhere in the code runtime NumberFormatException is thrown
    
       }
    }
    Class below throws declared exception, and runtime exception.

    My expectation is that client will have to handle an exception, right?

    How about runtime exceptions. How are these received on the client?

  • #2
    There's an exception translator that translates all exceptions thrown by the service. So you should just receive all exceptions you throw in your service without doing anything special.

    rgds,
    Alef Arendsen

    Comment


    • #3
      Thank you Alef,

      Can you also tell me please what are the spring dependencies on the client side if I want to use Spring HTTPInvoker?

      Thank you,
      Edmon

      Comment

      Working...
      X