Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
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 >> 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
Don't get me started about those stupid
subject: core java
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013