Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
minerva
core
Commits
eae8c970
Commit
eae8c970
authored
7 years ago
by
Piotr Gawron
Browse files
Options
Downloads
Patches
Plain Diff
fix after hgnc api started giving different response for invalid ids
parent
6450f024
No related branches found
Branches containing commit
No related tags found
2 merge requests
!166
Devel 11.0.x
,
!162
Resolve "ebi pubmed service moved to https"
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
annotation/src/main/java/lcsb/mapviewer/annotation/services/annotators/HgncAnnotator.java
+7
-1
7 additions, 1 deletion
...pviewer/annotation/services/annotators/HgncAnnotator.java
with
7 additions
and
1 deletion
annotation/src/main/java/lcsb/mapviewer/annotation/services/annotators/HgncAnnotator.java
+
7
−
1
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
);
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment