File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
RabbitMQ in Depth
this week in the
vijay deivasigamani deivasigamani
Joined: Apr 15, 2007
Apr 16, 2007 03:11:00
I have a doubt, can we return an exception to a method? if so give me an example.
Joined: Aug 02, 2006
Apr 16, 2007 09:37:00
I think this question belongs in "Java >>
in General (beginner)"
instead of "Products >> Struts". That said, if I understand your question, I think you're looking for:
throw new Exception("Exception text here.");
Sun Exceptions Tutorial
I agree. Here's the link:
subject: core java
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015