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

error message improved

parent 04fdb2ab
No related branches found
No related tags found
2 merge requests!630WIP: Resolve "The privileges of a new user are not saved in some cases",!576Error message improved
......@@ -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);
}
......
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