Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

faultDetail element and custom exceptions

 
madhup narain
Ranch Hand
Posts: 148
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
An exception in my webservice is coming under the faultDetail element.
Should the custom exception come under this element ?
Is there any way i can retrieve this exception.



 
Naren Chivukula
Ranch Hand
Posts: 577
Java Notepad Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Madhup,
All your business exceptions thrown from web service would come as SOAP Faults. SOAPFault has got many methods to retrieve it's fields. For example, to get fault detail, use getDetail().
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic