Closed sneumann closed 5 years ago
This is bad error handling on the rcdk
side, since if the Java error was properly handled, you'd still get an empty list. In this case, the error has gone away because of updates on the CDK side (I think).
In any case, I'd vote for returning an empty list and do better handling of Java exceptions internally.
Fully agreed, current behaviour is OK then. Yours, Steffen
Hi, I found the difference between the old and current
rcdk
behaviour, which caused https://github.com/MassBank/RMassBank/issues/199rcdk_3.4.9.1 rcdklibs_2.2.1
rcdk_3.4.7.1 rcdklibs_2.0
Thing is, that
RMassBank
was trying to catch the error, and did not expect an empty list (see https://github.com/MassBank/RMassBank/issues/199#issuecomment-442193412). So, design question would be: do we wantrcdk
to return an empty formula list, or to throw an error ? Yours, Steffen