This week's book giveaway is in the Other Languages forum.
We're giving away four copies of Functional Reactive Programming and have Stephen Blackheath and Anthony Jones on-line!
See this thread for details.
Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Exception

 
naresh babu
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 732
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
catch(Exception2 e){} ???
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic