> Hi Miguel, > > I think that that is a good idea. I was wondering whether it may make > sense to capture a 'log' of errors which at the end of parsing the file > is thrown as an exception and not throw an exception during parsing and > stop parsing at that point. The latter is of course only possible if > the exception that occurs is indeed such that one can recover from it.
I was thinking of having a set of 'warning' strings. The JmolAdapter would iterate through the set of strings, fetching them one by one. This would address warning conditions, but not error conditions that would throw an exception. You are suggesting that we do something similar for error conditions. What do you think about having the JmolAdapter never throw an exception ... but always having it return with a status condition (OK, warnings, errors) with a set of strings as messages ... to be handled by the client. Miguel ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ Jmol-developers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jmol-developers
