Re: Evolution

From: Alex McDonald (alex_mcd_at_btopenworld.com)
Date: 11/21/03


Date: Fri, 21 Nov 2003 19:04:54 +0000 (UTC)


"Betov" <betov@free.fr> wrote in message
news:XnF943A5F08F47BDbetovfreefr@213.228.0.75...
> _____________________
> * Errors Managements:
>
> I am not the one who impemented a lazy SEH. Instead, RosAsm
> Errors Management is a per cases based implementation providing
> sensible errors messages, as well at [Compile] time as at
> [Run] Time. So, yes (!!!...), for errors that i never thought
> about, that i have never heard about and never seen... _yes_,
> the _normal_ behaviour is to hang. The great thing with this
> deliberate choice is that it _forces_ users to report, and i
> have to say that, at least for the Assembler itself, i simply
> don't recall the last time i had some report of that kind...

Or forces users to throw it away because its broken. Exception based error
handling is there to provide a mechanism to simplify the code you write;
rather than have to address all the _potential_ errors in-line in the code
(very often to the detriment of clarity), exception handling allows you to
focus on the task in hand and treat exceptions as (1) infrequent(2)
interrupts (3) out of line of the main code and (4) on a case by case basis.

More importantly, it forces you to recognise that your software will always
have a fault somewhere. Software should degrade gracefully; if it must fail,
then with as good diagnostics as possible. Managing unknown errors is about
recognising their inevitability; that is, _at design time_ making sure that
they can be handled and reported at run time. Software that explodes, hangs,
loops or dies silently is simply poorly designed software.

-- 
Regards
Alex McDonald


Relevant Pages

  • Re: More on Exceptions.
    ... no exception is ever thrown. ... Having determined the stream 'state' you then take appropriate action. ... as the exception handling is 'quarantined' within the ... int main ...
    (alt.comp.lang.learn.c-cpp)
  • Re: Exception handling in class: question
    ... >> practice for exception handling or should they be sprinkled through code ... you were hiding your question in Perl verbiage. ... > Only use it if the exception can't be otherwise anticipated. ... The first form traps run-time exceptions that would otherwise prove fatal, ...
    (comp.lang.perl.misc)
  • Re: count2.asm
    ... >> But seriously, without HLA's exception handling, it would have ... routine both end up checking for errors...the called routine checks for ... "general purpose handler" with catch the serious errors...if you want to ...
    (alt.lang.asm)
  • 11/7/2006 - San Diego .NET Developer Group Meeting (NOV 2006)
    ... Building an Integrated Desktop Application: ... hosting architecture and composite UI ... Exception Handling: Are you handling exceptions or are they handling you? ...
    (microsoft.public.dotnet.general)
  • Re: Exceptions in C/C++
    ... a normal software engineering environment ... engineering environment'. ... exception handling is a mechanism to do "long-range" error ...
    (comp.lang.c)