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 @@
......@@ -356,10 +356,10 @@ public class CosmosStore {
return cosmosClientFactory.getClient(dataPartitionId)
} 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