Commit e5ab5507 authored by Piotr Gawron's avatar Piotr Gawron

error message improved

parent 04fdb2ab
......@@ -4,6 +4,7 @@ import org.apache.log4j.Logger;
import org.w3c.dom.Node;
import org.w3c.dom.NodeList;
import lcsb.mapviewer.common.exception.InvalidArgumentException;
import lcsb.mapviewer.common.exception.InvalidXmlSchemaException;
import lcsb.mapviewer.common.exception.NotImplementedException;
import lcsb.mapviewer.converter.model.celldesigner.CellDesignerElementCollection;
......@@ -150,6 +151,8 @@ public class SpeciesAliasXmlParser extends AbstractAliasXmlParser<Species> {
species.updateModelElementAfterLayoutAdded(result);
return result;
} catch (InvalidArgumentException e) {
throw new InvalidXmlSchemaException(errorPrefix + e.getMessage(), e);
} catch (NotImplementedException e) {
throw new InvalidXmlSchemaException(errorPrefix + "Problem with creating species", e);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment