Samisa Abeysinghe wrote:
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 log4c which has bsd style licence. But did not
incorporated yet into axis2 until we have a look into apache code to see
how they do it.
damitha
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.