-
Notifications
You must be signed in to change notification settings - Fork 536
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introduce normalizeError for getting a valid IFluidErrorBase from an …
…arbitrary caught error (#6764) This change introduces the `IFluidErrorBase` interface described in #6676, and adds a function `normalizeError`. `normalizeError` will take any input at all and return a valid `IFluidErrorBase`, whether the original object or a new one if necessary. It also applies annotations to the resulting error, either telemetry props or an error code to use if there isn't one on the given error.
- Loading branch information
1 parent
35fcb79
commit 28d43b2
Showing
12 changed files
with
727 additions
and
377 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -88,6 +88,7 @@ | |
"mocha": "^8.4.0", | ||
"nyc": "^15.0.0", | ||
"rimraf": "^2.6.2", | ||
"sinon": "^7.4.2", | ||
"typescript": "~4.1.3" | ||
} | ||
} |
Oops, something went wrong.