Re: exceptions: checked or unchecked?



marlow.andrew@xxxxxxxxxxxxxx wrote:
Joshua Cranmer wrote:
> I read somewhere that these
days people consider checked exceptions to be an
experiment that failed. Instead of people adding
the exceptions required to the throw list or handling
the exceptions internally the exceptions are typically
mis-handled by doing a catch and report stack trace
and then ignoring them. I have seen quite a lot of this.
Java is unique (AFAIK) in having checked exceptions. And Java is the
only language where I find exception handling workable. It makes writing
correct code easier and incorrect code harder: you already have the
exception, you might as well do something with it.

Well, that's the theory but all too often to the practise is:
the exceptions are typically mis-handled by doing a catch and
report stack trace and then ignoring them. I have seen quite a lot of
this.

Not really.

It is a common practice in unimportant throw away programs,
demos posted on usenet etc..

It is not a common practice in serious applications.

Arne
.



Relevant Pages

  • Re: Error handling in VB6
    ... The VB syntax for catching and handling errors is definitely not ... exceptions thrown in Main, and in anything called from Main. ... OnError GoTo SomeErrHandler ... VB6 has no such thing as a global error handler. ...
    (microsoft.public.vb.general.discussion)
  • Re: File Descriptors
    ... At least one Tcl ... I think that depends somewhat one where you are coming to tcl/tk from. ... With regard to error handling in particular, ... Conditions under which exceptions occur ...
    (comp.lang.tcl)
  • Re: Practical error/exception handling...
    ... >> exceptions be iterated in order to get a better response. ... >> What I have done in the past is to have a database table of error codes ... >> error to a global error handling routine that can roll back transactions ... deal with a missing network connection or a file being locked when these ...
    (alt.comp.lang.borland-delphi)
  • Re: VB2008: Getting the System.Reflection.PropertyInfo from within a class property
    ... to get into Exception handling. ... MyClass is responsible for the data ... In case user input is required the the data is passed to a ... Stacktrace" in the case of handling exceptions. ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Oh boy, how did we miss this...
    ... >This error seems to trigger SEH immediately, but no handler responded because I ... use the OS's own reporting mechanism in a way that was never intended (at ... There are several different error handling mechanisms in Windows... ... Structured Exceptions ...
    (comp.lang.pascal.delphi.misc)