Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: Oracle For Fun

Re: Oracle For Fun

From: Tony <andrewst_at_onetel.net.uk>
Date: 31 Jan 2004 00:11:36 -0800
Message-ID: <c0e3f26e.0401310011.5e7f5718@posting.google.com>


"Niall Litchfield" <niall.litchfield_at_dial.pipex.com> wrote in message news:<401ae429$0$10057$cc9e4d1f_at_news.dial.pipex.com>...
> "Tony" <andrewst_at_onetel.net.uk> wrote in message
> news:c0e3f26e.0401301236.2b11876a_at_posting.google.com...
> > Why would a production environment require redundant error handling
> > and variable declarations? ;o)
>
> Variable declarations for readability essentially.
> A do nothing error handler for when the code gets changed to do something
> that might actually throw errors. People always exclude error handling from
> their code. It is almost always a mistake.

I tend to the opposite view: some people put too much error handling in their code, sometimes resulting in unwanted behaviour. Without explicit error handling, the worst that happens is you get a terse error message; with bad error handling, you may never know there was an error. Received on Sat Jan 31 2004 - 02:11:36 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US