[Mondrian] parser Error vs. Exception

Julian Hyde jhyde at pentaho.com
Thu Mar 29 14:13:03 EDT 2012

I agree that we shouldn't be using Error for everyday occurrences such as syntax errors in MDX. Errors are for unrecoverable system issues such as OutOfMemory.

The TokenMgrError class is generated by JavaCC. We didn't have a choice. But I believe that it is handled each time it is thrown.


On Mar 29, 2012, at 4:32 AM, Paul Stoellberger wrote:

I just encountered a parser Exception that would throw a TokenMgrError, and I was wondering why you would use Error instead of Exception?
It kinda messes up my exception handling a bit (which I can adapt, but just wondered why you chose Error over Exception)

And is there any other point where you chose Error over Exception that I need to be aware of?


Mondrian mailing list
Mondrian at pentaho.org<mailto:Mondrian at pentaho.org>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.pentaho.org/pipermail/mondrian/attachments/20120329/ae094ea2/attachment.html 

More information about the Mondrian mailing list