Unifying Exception types in setup

Robert Collins rbcollins@cygwin.com
Sun Mar 16 19:57:00 GMT 2003


On Sun, 2003-03-16 at 21:24, Pavel Tsekov wrote:

> Just chaging exit() -> throw Exception won't help much. There should be
> an exception handler installed who takes care of processing these 
> exceptions i.e. shutdown setup with a simple message describing the
> situation.
> 
> If you going to do this I suggest you to dereive a new class from 
> exception or Exception, say FatalException. Then install a global handler,
> which catches FatalException and displays a message then exits. This way 
> the exit call will be in a single place and not scattered throught the 
> code.

Yep, thats reasonable. terminate handlers can't return though, so we
need a synchronous, non memory allocating, non resource using message
display.

Rob
-- 
GPG key available at: <http://users.bigpond.net.au/robertc/keys.txt>.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://cygwin.com/pipermail/cygwin-apps/attachments/20030316/00dc3ffe/attachment.sig>


More information about the Cygwin-apps mailing list