View Full Version : TreeStore catches onLoad RuntimeExceptions

22 Jun 2008, 10:50 PM
When an exception is throwed on load with a TreeStore, it is handled by onLoadException(), which is empty but can be overrided.
I think it should throw at least RuntimeExceptions, because the actual behaviour hides errors.
I propose to do

protected void onLoadException(LoadEvent le) {
if (le.exception instanceof RuntimeException)
throw (RuntimeException) le.exception;
}or maybe handle these runtime exceptions in the LoadListener (defined in TreeStore constructor)

23 Jun 2008, 7:08 AM
Change is in SVN.