[wsf-c-dev] [C++] Throwing Exceptions in Constructors
Sanjaya Karunasena
sanjayak at wso2.com
Mon Nov 5 02:05:29 PST 2007
I guess the problem is how to do clean up when you have to throw an exception
in C++. Following link has some useful information.
http://www.parashift.com/c++-faq-lite/exceptions.html#faq-17.2
/Sanjaya
On Monday 05 November 2007, Afkham Azeez wrote:
> AFAIK, throwing exceptions from a constructor is not a bad thing. In
> fact it is a good thing, since if an object instantiation has certain
> prerequisites, not fulfilling these prerequisites should result in the
> object not being instantiated.
>
> --
> Azeez
>
> Senaka Fernando wrote:
> > There is a situation in which the Service Client Class constructor can
> > fail in the initialization of resources. How can we notify the user that
> > the constructor has failed?
> >
> > Exceptions are presently used, but, is there any better way?
> >
> >
> > _______________________________________________
> > Wsf-c-dev mailing list
> > Wsf-c-dev at wso2.org
> > http://wso2.org/cgi-bin/mailman/listinfo/wsf-c-dev
>
> _______________________________________________
> Wsf-c-dev mailing list
> Wsf-c-dev at wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/wsf-c-dev
More information about the Wsf-c-dev
mailing list