Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Open Subsurface Data Universe Software
Platform
System
Lib
cloud
azure
OS Core Lib Azure
Commits
6cf0ff59
Commit
6cf0ff59
authored
Jan 22, 2021
by
neelesh thakur
Browse files
log exception for not found
parent
bcdb280c
Pipeline
#23366
failed with stages
in 1 minute and 28 seconds
Changes
2
Pipelines
4
Hide whitespace changes
Inline
Side-by-side
pom.xml
View file @
6cf0ff59
...
...
@@ -20,7 +20,7 @@
<groupId>
org.opengroup.osdu
</groupId>
<artifactId>
core-lib-azure
</artifactId>
<packaging>
jar
</packaging>
<version>
0.0.6
1
</version>
<version>
0.0.6
2
</version>
<name>
core-lib-azure
</name>
<properties>
...
...
src/main/java/org/opengroup/osdu/azure/cosmosdb/CosmosStore.java
View file @
6cf0ff59
...
...
@@ -110,11 +110,10 @@ public class CosmosStore {
T
item
=
container
.
readItem
(
id
,
key
,
options
,
clazz
).
getItem
();
return
Optional
.
ofNullable
((
T
)
item
);
}
catch
(
NotFoundException
e
)
{
LOGGER
.
warn
(
String
.
format
(
"Unable to find item with ID=%s and PK=%s"
,
id
,
partitionKey
));
LOGGER
.
warn
(
String
.
format
(
"Unable to find item with ID=%s and PK=%s"
,
id
,
partitionKey
)
,
e
);
return
Optional
.
empty
();
}
catch
(
CosmosException
e
)
{
String
errorMessage
;
errorMessage
=
"Unexpectedly encountered error calling CosmosDB"
;
String
errorMessage
=
"Unexpectedly encountered error calling CosmosDB"
;
LOGGER
.
warn
(
errorMessage
,
e
);
throw
new
AppException
(
500
,
errorMessage
,
e
.
getMessage
(),
e
);
}
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment