axis-c-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nabeel Yoosuf" <nabeel.yoo...@gmail.com>
Subject Re: Error handling in Neethi/C
Date Sun, 15 Jul 2007 05:31:52 GMT
On 7/13/07, manjula <manjula@wso2.com> wrote:
>
> On Fri, 2007-07-13 at 11:06 +0600, Samisa Abeysinghe wrote:
> > Dinesh Premalal wrote:
> > > manjula <manjula@wso2.com> writes:
> > >
> > >> There are two approaches for Error handling in Neethi/C
> > >>
> > >> 1. To add error codes to current Axis2/C error.h and use those inside
> > >> Neethi/C
> > >>
> > >> 2. Adding separate error codes as in sandesha2/c and use them inside
> > >> Neethi/C
> > >>
> > >
> > > +1 for first approach.
> > >
> > hmmm would not second approach be more leaner ?
>
> The problem is when to init the error struct which has error codes.
> Because there is nothing like module init in policy. Policy functions
> can be called from any where.
>
> -Manjula.



The second option would pay off in the long run. One way to achieve this is
to get rid of axutil_error_init function; you can statically define error-no
- error-str mapping during compile time.

Nabeel.

---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-c-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-c-dev-help@ws.apache.org
>
>


-- 
http://www.cs.purdue.edu
http://mohamednabeel.blogspot.com

Mime
View raw message