Skip to content
Snippets Groups Projects
Commit 9a236442 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

NotImplementedException should extend Error; some errors changed into warnings

parent 3b8f73a8
No related branches found
No related tags found
1 merge request!377Resolve "SBML structures cause upload errors"
Pipeline #
......@@ -19,11 +19,11 @@ import org.sbml.jsbml.SBMLReader;
import org.sbml.jsbml.ext.SBasePlugin;
import org.sbml.jsbml.ext.layout.Layout;
import org.sbml.jsbml.ext.layout.LayoutModelPlugin;
import org.sbml.jsbml.util.NotImplementedException;
import lcsb.mapviewer.commands.CommandExecutionException;
import lcsb.mapviewer.commands.layout.ApplySimpleLayoutModelCommand;
import lcsb.mapviewer.common.MimeType;
import lcsb.mapviewer.common.exception.NotImplementedException;
import lcsb.mapviewer.converter.ConverterException;
import lcsb.mapviewer.converter.ConverterParams;
import lcsb.mapviewer.converter.IConverter;
......@@ -103,13 +103,10 @@ public class SbmlParser implements IConverter {
throw new NotImplementedException("ConversionFactor not implemented for model");
}
if (sbmlModel.getCVTermCount() > 0) {
throw new NotImplementedException("CVTerms not implemented for model");
logger.warn("Handling of CVTerms is not implemented for model");
}
if (sbmlModel.getEventCount() > 0) {
throw new NotImplementedException("Events not implemented for model");
}
if (sbmlModel.getEventAssignmentCount() > 0) {
throw new NotImplementedException("EventAssignemnts not implemented for model");
if (sbmlModel.getEventCount() > 0 || sbmlModel.getEventAssignmentCount() > 0) {
logger.warn("Handling of Events is not implemented for model");
}
if (sbmlModel.getInitialAssignmentCount() > 0) {
throw new NotImplementedException("InitialAssignment not implemented for model");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment