Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Java in General
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
Java in General
Exception
naresh babu
Greenhorn
Posts: 18
posted 22 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
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
posted 22 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
catch(Exception2 e){} ???
If you're gonna buy things, buy this thing and I get a fat kickback:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
exception question,why?
method overriding
Exceptions
code problem.help please!!!!
explain try catch problem
More...