-
Notifications
You must be signed in to change notification settings - Fork 285
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(cactus-core): catch block get-open-api-spec-v1-endpoint-base
1. The GetOpenApiSpecV1EndpointBase<S, P> class now has the request handler migrated to the new error handling mechanism that automatically differentiates between HTTP statuses of 4xx and 5xx. 2. The register-web-service-endpoint utility function uses the new error handling utilities as well, but on the lower level, e.g. it coerces unknown errors to RuntimeError instances to minimize the risk of information loss when re-throwing the inner exception with more context attached to it. 3. The consensus-has-transaction-finality file was similarly migrated to the new error handling mechanisms. 4. A dependency to the cactus-core package was added for the easier handling of HTTP specific errors. The http-errors-enhanced-cjs package contains useful shorthands for HTTP-aware error handling and can be used in common JS environments instead of being constrainted to ESM only like the original library. Co-authored-by: Peter Somogyvari <[email protected]> Signed-off-by: ArchanaArige <[email protected]> Signed-off-by: Peter Somogyvari <[email protected]>
- Loading branch information
1 parent
f4373a9
commit 81c93f9
Showing
6 changed files
with
36 additions
and
30 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