Conversation
* create Domain, Application and Infrastructure projects * add project references
* move Result and Error classes to separate folders * add ErrorType enum * add ErrorType enum to custom errors * refactor method returns to use implicit conversion with Failure results * fix typo in Error constructor parameter * refactor controller logic to use ErrorType * remove interpolation from Category Errors
* remove NotModified custom error * add Validation ErrorType * add error mapping to status codes
* cleanup EF configurations * add Duration property * implement rich domain model * add Duration property to Exercise response * recreate InitialCreate migration
add seeding service
move service and middleware registration to configuration methods
* install Fluent Validation * add Category request validators * change Fluent Validation configuration to use Contracts assembly marker * add Exercise requests validators
## Summary This pull requests adds global exception handling feature ## Changes - configure global exception handling services and middleware - add `GlobalExceptionHandler` class that returns errors in a standardized ProblemDetails response
## Summary - this pull request adds ProblemDetails mapping from Error types ## Changes - rework ErrorType enum - add ErrorType factory methods - adjust custom ApplicationErrors - add `ToProblemDetails` extension method
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.