[wsf-c-dev] [C++] Throwing Exceptions in Constructors
Afkham Azeez
azeez at wso2.com
Sun Nov 4 23:55:25 PST 2007
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
>
More information about the Wsf-c-dev
mailing list