Article View: borland.public.jbuilder.java.language
Article #16813Re: what about IOExceptions
From: Richard Wilkman
Date: Wed, 13 Jan 1999 00:00
Date: Wed, 13 Jan 1999 00:00
36 lines
1927 bytes
1927 bytes
Brad: You catch exceptions individually -- that's just good coding because it's pretty common that you'll need to do special code for a given excepiton and not a different one. It's how the language works. If a class or method specificly throws an exception, you've got to catch it. You catch exceptions, in Java, in order of "most specific" to "least specific". This allows for fall through code if you are working with exceptions that extend other exceptions. -Rich Brad Miller wrote: > > I ran into this as well when trying to use URL and URLConnection. Coming > from Delphi, this Java stuff is driving me nuts! Why do I have to catch > this exception! why isn't there default exception handling built-in to > the class!! Why won't my code compile!!! Oh yes, Java is case sensitive, > (the evils of overloading rear their ugly heads), etc, etc... -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Rich Wilkman Senior Quality Assurance Engineer Borland JBuilder Team If you see something that looks like an opinion up there, it's mine and mine alone. Mail sent to me from the newsgroups won't bounce but will be ignored. If I have time, I'll respond, but you have a better chance if you confine your posts to the newsgroups =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Technical Details
Message-ID:
<369D303F.6A8BDDE7@inprise.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<77f85u$p8f9@forums.borland.com> <369D1BD9.7C09FBC1@spicedhamawayaol.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,c9d8c3f7cf0306c6 X-Google-Attributes: gidf74b3,public From: Richard Wilkman <rwilkman@inprise.com> Subject: Re: what about IOExceptions Date: 1999/01/13 Message-ID: <369D303F.6A8BDDE7@inprise.com> X-Deja-AN: 432334361 Content-Transfer-Encoding: 7bit References: <77f85u$p8f9@forums.borland.com> <369D1BD9.7C09FBC1@spicedhamawayaol.com> Content-Type: text/plain; charset=us-ascii Organization: Another Netscape Collabra Server User Mime-Version: 1.0 Newsgroups: borland.public.jbuilder.java.language