Commit 6c41c93a authored by Hema Vishnu Pola [Microsoft]'s avatar 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
......@@ -21,7 +21,7 @@
<groupId>org.opengroup.osdu</groupId>
<artifactId>core-lib-azure</artifactId>
<packaging>jar</packaging>
<version>0.0.38</version>
<version>0.0.39</version>
<name>core-lib-azure</name>
<properties>
......
......@@ -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);
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment