• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to throw custom exceptions while implementing Provider

 
Kumar Raja
Ranch Hand
Posts: 547
2
Hibernate Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

As we all know, invoke() method of provider throws WebServiceException, should some thing goes wrong. This exception is a runtime exception. But how do we handle a CustomException while implementing Provider interface. Especially when the wsdl has an exception declared as fault and following Contract first approach, how do we throw this custom exception "as is" in provider implementation. Wrapping custom exception in runtime exception is the only way we can propogate it back to client. Could you please explain me on this aspect ?
 
Kumar Raja
Ranch Hand
Posts: 547
2
Hibernate Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Any advice.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic