[omniORB] Question about exceptions ...

Srinivasan N. srini_n1@verifone.com
Fri, 03 Jul 1998 11:39:11 +0530


Hi,
>
> ..
>    ReasonSeqT reason(1);
>    reason.length(1);
>    reason[0] = strdup ("erra ya moron ya");
>    operation_error *Err = new operation_error
> (DATA_NOT_FOUND, reason);
>    throw (Err);
> ..
 U could try

  operation_error Err(DATA_NOT_FOUND, reason);
  throw Err;

 AFAIK, throw requires an object and not a pointer to an object.
--
Regards,
ns(N. Srinivasan)
------------------
"I do not believe in a God who concerns himself with the destinies of
men.
I believe in Spinoza's God, who manifests himself in the harmony of all
that exists."
--Albert Einstein

----------------------------------------------------------------------------

Srinivasan N.                           Email    : srini_n1@verifone.com

Verifone(India)                         PHONE(W) : +91-80-5298151 x5015
Wind Tunnel Road,                       PHONE(H) : +91-80-5268766
Murugeshpalya,
Bangalore 560 017
India.
                                        FAX      : +91-80-5299876
----------------------------------------------------------------------------



--
Regards,
ns(N. Srinivasan)
------------------
"I do not believe in a God who concerns himself with the destinies of
men.
I believe in Spinoza's God, who manifests himself in the harmony of all
that exists."
--Albert Einstein

----------------------------------------------------------------------------

Srinivasan N.                           Email    : srini_n1@verifone.com

Verifone(India)                         PHONE(W) : +91-80-5298151 x5015
Wind Tunnel Road,                       PHONE(H) : +91-80-5268766
Murugeshpalya,
Bangalore 560 017
India.
                                        FAX      : +91-80-5299876
----------------------------------------------------------------------------