From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,e76a94c6438141e2 X-Google-Attributes: gidfa528,public X-Google-ArrivalTime: 2004-02-09 03:03:08 PST Sender: sneumann@liszt.TechFak.Uni-Bielefeld.DE Newsgroups: comp.unix.tru64 Subject: Re: c++ exception handling References: <7YTUb.10$tv3.0@dfw-service2.ext.ray.com> Mime-Version: 1.0 (generated by tm-edit 7.106) Content-Type: text/plain; charset=US-ASCII From: Steffen Neumann Date: 09 Feb 2004 12:03:02 +0100 Message-ID: Organization: Faculty of Technology, Bielefeld University X-Newsreader: Gnus v5.6.44/Emacs 19.34 NNTP-Posting-Host: liszt.techfak.uni-bielefeld.de X-Trace: news.uni-bielefeld.de 1076324582 liszt.techfak.uni-bielefeld.de (9 Feb 2004 12:03:02 +0100) Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!fu-berlin.de!news.uni-bielefeld.de!not-for-mail Xref: archiver1.google.com comp.unix.tru64:11171 Scott Schindler 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