Hmm... let's say the simple method operations all kept line numbers in them. The exec method could catch all Exceptions, wrap the original Exception with a MiniLangException - which would also accept the method name and line number - and then throw the MiniLangException. You could still get a stack trace from that, right?
-Adrian --- On Tue, 6/30/09, Adam Heath <doo...@brainfood.com> wrote: > From: Adam Heath <doo...@brainfood.com> > Subject: Re: svn commit: r790027 - > /ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/SimpleMethod.java > To: dev@ofbiz.apache.org > Date: Tuesday, June 30, 2009, 8:27 PM > Adrian Crum wrote: > > Why wouldn't we want this as a standard part of the > framework? Also, it would be nice if the <log> > operation included a line number in the log. > > Because enabling it adds a stack frame to each > operation. When > several operations are called in series, this can add up. > > I don't care either way. >