开发者

Can custom exceptions be created for a webservice operation on netbeans?

开发者 https://www.devze.com 2022-12-22 05:52 出处:网络
I am using netbeans glassfish bundle to create a webservice. I am adding operations to the webservice from the design view. In the exception tab I noticed theres no way to create a custom exception an

I am using netbeans glassfish bundle to create a webservice. I am adding operations to the webservice from the design view. In the exception tab I noticed theres no way to create a custom exception and you can only search for a predefined exception. Is this a standard f开发者_高级运维or webservices? Or can I just create my own exception classes and then search for them from this dialogue box?


You can use 'custom exceptions' as part of a web service. The dialog does not let you create a custom exception as you are creating your web service. The dialog will let you choose a custom exception that you have created prior to opening the dialog/creating your web service.

alt text http://blogs.sun.com/vkraemer/resource/custom-exception.png

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号