From: Wolfgang M. <wol...@ex...> - 2010-03-17 21:07:49
|
> This is just a simple example, see the attached diff, but I am > wondering if there is value in, expanding on this concept and pushing > xquery line context information into the datatype system for better > errors. It somehow doesn't feel right to add caller information to the returned data values. Our approach so far has been to catch the thrown exception on a higher level and add the line information there. See class FunctionCall for an example. I think this concept could be extended, though we won't be able to cover all cases where a type error could occur. But for your example, the if expression could certainly catch and rethrow the exception. Wolfgang |