Usenet comp.unix.tru64 (2000-2013)
 help / color / mirror / Atom feed
From: Scott Schindler <notcorrect@whocares.com>
Subject: Re: c++ exception handling
Date: Mon, 09 Feb 2004 13:15:55 GMT	[thread overview]
Message-ID: <fKLVb.1$DT5.0@dfw-service2.ext.ray.com> (raw)
In-Reply-To: s5ubro88qhl.fsf@liszt.TechFak.Uni-Bielefeld.DE

Steffen Neumann <sneumann@TechFak.Uni-Bielefeld.DE> wrote in
news:s5ubro88qhl.fsf@liszt.TechFak.Uni-Bielefeld.DE: 

> Scott Schindler <notcorrect@whocares.com> writes:
> 
>> I am trying to test an exception handling scheme in c++ on a unix
>> machine (uname -a produces the following output: OSF1 *removed* V5.1
>> 1885 alpha alpha)
> [...]
>> produces the following output:
>> Floating exception
> [...]
>> Using the same compilation and running commands produces the
>> following output:
>> Exception caught by the signal handler.
>> Exception caught by catch all.
> 
>> I am not sure that I want to implement the second method.  Is there a
>> pure c++ way of having the program catch the exception.
> 
> Well, "int" is not an object data type,
> therefore there is nobody "throwing" the exception.
> 
> Either you look for some C++ math library that 
> wraps all Integer into C++ objects with exception handling,
> or you go it your way.
> 
> Yours,
> Steffen
> 
> 

I am not sure I understand what your saying by "int" is ont an object data 
type.  Are you saying that the throw in the handler is invalid because it 
is throwing an int?  My concern is that I cannot catch a floating point 
exception on a tru64 machine in c++.

Thank you for your time,
Scott


  reply	other threads:[~2004-02-09 13:15 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-02-06 21:47 c++ exception handling Scott Schindler
2004-02-09 11:03 ` Steffen Neumann
2004-02-09 13:15   ` Scott Schindler [this message]
2004-02-09 13:22 ` Falk Hueffner
2004-02-09 14:41   ` Scott Schindler
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox