This project has moved. For the latest updates, please go here.

Load a non xml file does not show any error


When trying to load a txt file, it won't load the file and it will not show any error.


tongbong wrote Apr 25, 2013 at 10:05 PM

Is no more an issue because the app does not freeze anymore.
However there is no error message telling the user that the opening failed.
That is the reason why this is now a feature and no more an issue.

dirkster wrote Apr 30, 2013 at 10:26 PM

I have thought about this but cannot really think of a straight forward way to implement this (since log4j is not strict schema based XML which requires a root tag).

Do you know a way for determining an error situation when wrong input format is present? If yes its probably not difficult to implement - just throw an exception that is caught by the viewmodel that drives the processing...

tongbong wrote May 2, 2013 at 5:52 PM

Error situation happens when Yalv is told to parse a file which has a wrong format.
Now that Yalv supports sqlite, this situation can happen.

But as you said, let's let Yalv try and catch the exception and display a message to the use with a hint that the given file could not be parsed.

I see nothing wrong with what is already there. Actually, with the error message, we found out a problem about encoding. So still ok for me.