This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Java in General and the fly likes Exception Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Exception" Watch "Exception" New topic
Author

Exception

naresh babu
Greenhorn

Joined: Feb 12, 2002
Posts: 12
Hi,
I had a question in exception:
public class exception1 extends Exception{}

public class exception2 extends exception1{}
I want client to catch only exception2, but
not exception1.Any ideas?

Thanks
Roy Ben Ami
Ranch Hand

Joined: Jan 13, 2002
Posts: 732
catch(Exception2 e){} ???
 
jQuery in Action, 2nd edition
 
subject: Exception
 
Similar Threads
exception question,why?
explain try catch problem
code problem.help please!!!!
Exceptions
method overriding