axis-c-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Samisa Abeysinghe <samisa.abeysin...@gmail.com>
Subject Re: [Axis2] Guththila needs to define a set of error returns
Date Fri, 30 Sep 2005 06:11:19 GMT
Sanjiva Weerawarana wrote:

>On Thu, 2005-09-29 at 16:04 +0600, Dinesh Premalal wrote:
>  
>
>>Guththila throws  Xml_PullParser_Exception  ()  on errors  that  code
>>is  
>>
>>PRIVATE int 
>>XML_PullParser_Exception (char *file, int line)
>>{
>>  printf ("Throws XML_PullParser_Exception \t %s \t %d \n", file, line);
>>  exit (0);
>>}
>>Which says file and line number when an error occured. I think that is
>>enough for identify the error that throwed exception. This
>>Xml_PullParser_Exception function defined in xmlpullparser.c file.
>>Please have a look on it. 
>>    
>>
>
>As a util library, under *NO* condition should Guththila ever call
>exit()! Let's agree on an error no convention and use that instead.
>Also, we need to set up a log mechanism (did log4c ship yet? maybe APR
>has logging capabilities).
>  
>
I looked into APR and could not find log mechanisms in the API. I want 
to look into apache code to double check how they are doing it.
Samisa...

>Sanjiva.
>
>
>
>
>  
>


Mime
View raw message