Topic: Exceptions ?


Author: frank@mikrosys.no (Frank Mikalsen)
Date: Mon, 9 May 1994 14:56:28 GMT
Raw View
Hello,

I have a class MyClass which constructor throws
an exception when certain condition occurs.

In a module mymodule.cpp I make a instance of the
MyClass like this:


static MyClass myinstance;


The default constructor to MyClass is called.

My question is:

How can I catch the exceptions thrown in the constructor
this early in the code.

Thanks in advance,
Frank
--
.. Frank Mikalsen    frank@mikrosys.no
.. System Developer, Mikrosys as
.. TROMSO, NORWAY