Comment 9 for bug 1111786

Revision history for this message
Matthias Brantner (matthias-brantner) wrote : Re: [Bug 1111786] Re: xml/json parse error location in catch clause

Adding Chris.

That's a question that has never been answered. In certain cases, we don't care. Sometimes
we care but have no way/test to make sure except looking very carefully.

@Chris: what's your take on that?

Matthias

On Feb 5, 2013, at 10:10 AM, "Paul J. Lucas" <email address hidden> wrote:

> Oh, I thought we cared about ABI incompatibilities as well. If we don't
> fine.
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1111786
>
> Title:
> xml/json parse error location in catch clause
>
> Status in Zorba - The XQuery Processor:
> In Progress
>
> Bug description:
> There should be a way to retrieve the error location of a xml/json parser error in a XQuery catch clause.
> One way of doing this would be to always declare and eventually bind the following variables:
>
> $zerr:data-line, $zerr:data-column, $zerr:data-uri
>
> For non-parser related errors, those variables would be bound to the
> empty sequence.
>
> Alternatively, there could be only one variable $zerr:data-error which is bound to
> either the empty sequence, an xml element, or a json object.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/zorba/+bug/1111786/+subscriptions