Its pretty obvious when you think about it. The first one is a relative
path, so it was unable to build full path to it, perhaps because you started
the program in the wrong directory but the file still might be out there.
The second one is unambigiously indicated, so its sure that it tried to open
what you wanted and found that it wasn't there.
--------------------------
Dean Roddey
The CIDLib C++ Frameworks
Charmed Quark Software
[EMAIL PROTECTED]
http://www.charmedquark.com
"Why put off until tomorrow what you can
put off until the day after tomorrow?"
----- Original Message -----
From: "Jason E. Stewart" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, May 29, 2001 10:46 AM
Subject: Parse Exceptions vs. fatal errors
> Hey,
>
> I ran into a strange problem with some code. Even though I was set an
> error handler my code was Aborting. I discovered this was because it
> was actually generating an *exception* and not an *error*.
>
> Could some please explain why these two LocalFileInputSource's behave
> differently:
> 1) ./als_sigma.xml
> 2) /tmp/als_sigma.xml
>
> Even though both files are non-existent 1) causes an exception: 'Could
> not determine base pathname of the file', while the second generates a
> fatal_error: 'The primary document entity could not be opened'
>
> This seems counter intuitive to me.
>
> Thanks,
> jas.
>
> Example #1:
> ----------
> SAXCount ./als_sigma.xml
>
> Error during parsing: './als_sigma.xml'
> Exception message is:
> Could not determine base pathname of the file
>
> Example #2:
> ----------
> SAXCount /tmp/als_sigma.xml
>
> Fatal Error at file (null), line 0, char 0
> Message: An exception occured! Type:RuntimeException, Message:The
primary document entity could not be opened. Id=/tmp/als_sigma.xml
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]