Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!samsung!uunet!mcsun!unido!gmdzi!jungblut From: jungblut@gmdzi.gmd.de (Achim Jungblut) Newsgroups: comp.lang.c++ Subject: Constructors and Error Conditions Message-ID: <5032@gmdzi.gmd.de> Date: 28 Jun 91 17:23:45 GMT Organization: GMD, St. Augustin, F.R. Germany Lines: 16 Hi out there, this is my first posting this group and I'm in the beginner state of learnig C++. Since Constructors do not return any value on completion how can I react on error conditions while executing the Constructor i.e what to do if I want to create an Integer in the range 34..59 via Construktor parameter and that parameter is out of that range ? One solution may be to introduce an additional out parameter reflecting the end state of the execution; but this seems not very smart to me. Hope someone can help me ... Gerd