From 2431703237822792724
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f78e5,9723061da44e5214,start
X-Google-Attributes: gidf78e5,public
From: Andy Larson <AndyLarson@prodigy.net>
Subject: Exception while throwing an exception?
Date: 1999/09/06
Message-ID: <37D3E50E.A13D8AFC@prodigy.net>#1/1
X-Deja-AN: 521841474
X-NNTP-Posting-Host: syrcb106-39.splitrock.net
Content-Transfer-Encoding: 7bit
Approved: stephen.clamage@sun.com (comp.std.c++)
X-UID: 0000000001
X-Status: $$$T
Content-Type: text/plain; charset=us-ascii
X-Complaints-To: abuse@prodigy.net
X-Trace: newssvr03-int.news.prodigy.com 936633537 263740 209.156.129.223 (6 Sep 1999 15:58:57 GMT)
Organization: Prodigy Internet http://www.prodigy.com
Mime-Version: 1.0
NNTP-Posting-Date: 6 Sep 1999 15:58:57 GMT
Newsgroups: comp.std.c++
Originator: clamage@taumet


What is the required behavior when the constructor of an exception
object throws an exception?  For example, if an exception is thrown as
in

throw some_object(some_arguments);

A constructor of some_object will be called.  That constructor may, in
turn, throw an exception.  Is the result of this that the original
exception, some_object, is not thrown and is replaced by the exception
that the some_object constructor threw?

I've searched through the IS to try and find the answer to this question
and have not found anything.  Maybe someone here can help.

Andy Larson


[ comp.std.c++ is moderated.  To submit articles, try just posting with ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu    ]
[              --- Please see the FAQ before posting. ---               ]
[ FAQ: http://reality.sgi.com/austern_mti/std-c++/faq.html              ]




