🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #16709

Re: what about IOExceptions

#16709
From: Doug Chamberlin
Date: Sun, 24 Jan 1999 00:00
16 lines
1464 bytes
On Wed, 13 Jan 1999 22:29:33 -0800, Brad Miller
<millerb235@spicedhamawayaol.com> wrote:

>Yes well I am starting to get a grasp on Java, but as a Delphi user who
>is used to more generic exception handling, (and little or no
>overloading and case sensitivity issues, (took me a whole evening to
>figure out why my call to myUrlConnection.OpenConnection(thisURL)
>refused to compile), it's buggin me...

I sympathize! My Delphi experience is also clouding my Java
experience.

If you start automatically adding "throws Exception" into your method
declarations, you will get as close as you can to Delphi's behaviour.
Of course, somewhere in your main() or other high level class methods
you need to put in a catch-all exception handler to act as a default.
Technical Details
Message-ID: <36ab2954.223374279@forums.inprise.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <77f85u$p8f9@forums.borland.com> <369D1BD9.7C09FBC1@spicedhamawayaol.com> <369D303F.6A8BDDE7@inprise.com> <369D8ECD.E2A467D0@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: dchamberlinNOSPAM@dlawton.com (Doug Chamberlin)
Subject: Re: what about IOExceptions
Date: 1999/01/24
Message-ID: <36ab2954.223374279@forums.inprise.com>
X-Deja-AN: 436311752
Content-Transfer-Encoding: 7bit
References: <77f85u$p8f9@forums.borland.com> <369D1BD9.7C09FBC1@spicedhamawayaol.com> <369D303F.6A8BDDE7@inprise.com> <369D8ECD.E2A467D0@spicedhamawayaol.com>
Content-Type: text/plain; charset=us-ascii
Organization: D. Lawton Associates
Mime-Version: 1.0
Reply-To: dchamberlinNOSPAM@dlawton.com
Newsgroups: borland.public.jbuilder.java.language