[omniORB] Question about exceptions ...

Tom Gardner tomg@tomg.com
Fri, 03 Jul 1998 07:58:26 -0700


I knew another set of
eyes would help ...

Many thanks ... it worked.

tomg

> 
> 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
> ----------------------------------------------------------------------------

-- 

--------------------------------------------------------
Tom Gardner                      e-mail:  tomg@iopen.com
21120 Serene Way                 Phone:   (408) 927-6687
San Jose, CA 95120-1217          Fax:     (408) 927-6684
--------------------------------------------------------