Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
minerva
core
Commits
eae8c970
Commit
eae8c970
authored
Jan 17, 2018
by
Piotr Gawron
Browse files
fix after hgnc api started giving different response for invalid ids
parent
6450f024
Changes
1
Hide whitespace changes
Inline
Side-by-side
annotation/src/main/java/lcsb/mapviewer/annotation/services/annotators/HgncAnnotator.java
View file @
eae8c970
...
...
@@ -14,6 +14,7 @@ import lcsb.mapviewer.annotation.cache.WebPageDownloader;
import
lcsb.mapviewer.annotation.services.ExternalServiceStatus
;
import
lcsb.mapviewer.annotation.services.ExternalServiceStatusType
;
import
lcsb.mapviewer.annotation.services.IExternalService
;
import
lcsb.mapviewer.annotation.services.WrongResponseCodeIOException
;
import
lcsb.mapviewer.common.exception.InvalidArgumentException
;
import
lcsb.mapviewer.common.exception.InvalidXmlSchemaException
;
import
lcsb.mapviewer.model.map.BioEntity
;
...
...
@@ -231,6 +232,8 @@ public class HgncAnnotator extends ElementAnnotator implements IExternalService
}
}
}
}
catch
(
WrongResponseCodeIOException
e
)
{
logger
.
warn
(
prefix
+
"Cannot find information for element."
);
}
catch
(
Exception
e
)
{
throw
new
AnnotatorException
(
e
);
}
...
...
@@ -314,7 +317,10 @@ public class HgncAnnotator extends ElementAnnotator implements IExternalService
}
}
return
result
;
}
catch
(
Exception
e
)
{
}
catch
(
WrongResponseCodeIOException
e
)
{
logger
.
warn
(
"No HGNC data found for id: "
+
miriamData
);
return
new
ArrayList
<>();
}
catch
(
Exception
e
)
{
throw
new
AnnotatorException
(
e
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment