Skip to content
GitLab
Menu
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
6c41c93a
Commit
6c41c93a
authored
Nov 05, 2020
by
Hema Vishnu Pola [Microsoft]
Browse files
Merge branch 'abpatil/exception_handling_fix' into 'master'
Exception handling fix in CosmosStore See merge request
!42
parents
0836b7ee
025c44ff
Pipeline
#14026
running with stages
in 10 minutes and 4 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
pom.xml
View file @
6c41c93a
...
...
@@ -21,7 +21,7 @@
<groupId>
org.opengroup.osdu
</groupId>
<artifactId>
core-lib-azure
</artifactId>
<packaging>
jar
</packaging>
<version>
0.0.3
8
</version>
<version>
0.0.3
9
</version>
<name>
core-lib-azure
</name>
<properties>
...
...
src/main/java/org/opengroup/osdu/azure/cosmosdb/CosmosStore.java
View file @
6c41c93a
...
...
@@ -356,10 +356,10 @@ public class CosmosStore {
return
cosmosClientFactory
.
getClient
(
dataPartitionId
)
.
getDatabase
(
cosmosDBName
)
.
getContainer
(
collection
);
}
catch
(
AppException
ae
)
{
throw
this
.
handleCosmosStoreException
(
ae
.
getError
().
getCode
(),
"Error creating creating Cosmos Client"
,
ae
);
}
catch
(
Exception
e
)
{
String
errorMessage
=
"Error creating creating Cosmos Client"
;
LOGGER
.
warn
(
errorMessage
,
e
);
throw
new
AppException
(
500
,
errorMessage
,
e
.
getMessage
(),
e
);
throw
this
.
handleCosmosStoreException
(
500
,
"Error creating creating Cosmos Client"
,
e
);
}
}
...
...
Write
Preview
Supports
Markdown
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