cosmos-explorer/src/Common
victor-meng 5741802c25
refactor error handling part 1 (#307)
- created `getErrorMessage` function which takes in an error string or any type of error object and returns the correct error message
- replaced `error.message` with `getErrorMessage` since `error` could be a string in some cases
- merged sendNotificationForError.ts with ErrorHandlingUtils.ts
- some minor refactoring

In part 2, I will make the following changes:
 - Make `Logger.logError` function take an error message string instead of an error object. This will reduce some redundancy where the `getErrorMessage` function is being called twice (the error object passed by the caller is already an error message).
 - Update every `TelemetryProcessor.traceFailure` call to make sure we pass in an error message instead of an error object since we stringify the data we send.
2020-10-30 22:09:24 +00:00
..
__snapshots__ Initial Move from Azure DevOps to GitHub 2020-05-25 21:30:55 -05:00
dataAccess refactor error handling part 1 (#307) 2020-10-30 22:09:24 +00:00
ArrayHashMap.ts Initial Move from Azure DevOps to GitHub 2020-05-25 21:30:55 -05:00
Constants.ts Remove AutoPilot v2 (#304) 2020-10-29 11:26:37 -05:00
CosmosClient.test.ts Remove window.dataExplorerPlatform (#279) 2020-10-15 03:25:13 +00:00
CosmosClient.ts refactor error handling part 1 (#307) 2020-10-30 22:09:24 +00:00
DataAccessUtilityBase.test.ts Initial Move from Azure DevOps to GitHub 2020-05-25 21:30:55 -05:00
DataAccessUtilityBase.ts Remove cached resource calls (#297) 2020-10-26 17:17:41 -05:00
DeleteFeedback.ts Initial Move from Azure DevOps to GitHub 2020-05-25 21:30:55 -05:00
DocumentClientUtilityBase.ts Remove cached resource calls (#297) 2020-10-26 17:17:41 -05:00
EditableUtility.ts Initial Move from Azure DevOps to GitHub 2020-05-25 21:30:55 -05:00
EnvironmentUtility.ts Cleanup extension endpoint loading (#224) 2020-09-24 18:10:54 -05:00
ErrorHandlingUtils.ts refactor error handling part 1 (#307) 2020-10-30 22:09:24 +00:00
ErrorParserUtility.test.ts Initial Move from Azure DevOps to GitHub 2020-05-25 21:30:55 -05:00
ErrorParserUtility.ts refactor error handling part 1 (#307) 2020-10-30 22:09:24 +00:00
HashMap.test.ts Initial Move from Azure DevOps to GitHub 2020-05-25 21:30:55 -05:00
HashMap.ts Initial Move from Azure DevOps to GitHub 2020-05-25 21:30:55 -05:00
HeadersUtility.test.ts Initial Move from Azure DevOps to GitHub 2020-05-25 21:30:55 -05:00
HeadersUtility.ts Initial Move from Azure DevOps to GitHub 2020-05-25 21:30:55 -05:00
IteratorUtilities.test.ts Initial Move from Azure DevOps to GitHub 2020-05-25 21:30:55 -05:00
IteratorUtilities.ts Initial Move from Azure DevOps to GitHub 2020-05-25 21:30:55 -05:00
Logger.test.ts Refactor Data Access Utility (#112) 2020-07-24 16:45:48 -05:00
Logger.ts refactor error handling part 1 (#307) 2020-10-30 22:09:24 +00:00
MessageHandler.test.ts Fix incorrect usage of TelemetryProcessor (#221) 2020-09-22 12:19:06 -07:00
MessageHandler.ts Do not fail when trying to find DE window with cross origin (#231) 2020-09-25 14:49:11 -07:00
MongoProxyClient.test.ts Remove one indirection for ConfigContext 2020-10-06 15:30:24 -07:00
MongoProxyClient.ts Remove one indirection for ConfigContext 2020-10-06 15:30:24 -07:00
MongoUtility.ts Initial Move from Azure DevOps to GitHub 2020-05-25 21:30:55 -05:00
ObjectCache.test.ts Initial Move from Azure DevOps to GitHub 2020-05-25 21:30:55 -05:00
ObjectCache.ts Initial Move from Azure DevOps to GitHub 2020-05-25 21:30:55 -05:00
PortalNotifications.ts Added Support for editing Mongo Indexing Policy from Settings tab (#284) 2020-10-26 14:17:40 -07:00
QueriesClient.ts refactor error handling part 1 (#307) 2020-10-30 22:09:24 +00:00
Splitter.ts Initial Move from Azure DevOps to GitHub 2020-05-25 21:30:55 -05:00
ThemeUtility.ts Initial Move from Azure DevOps to GitHub 2020-05-25 21:30:55 -05:00
UrlUtility.ts Initial Move from Azure DevOps to GitHub 2020-05-25 21:30:55 -05:00