-
Notifications
You must be signed in to change notification settings - Fork 129
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
✨ manage the flow of errors through results instead of relying on exceptions. #124
Merged
Conversation
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
kamilbaczek
changed the title
Manage the flow of errors through resul instead of relying exceptions
manage the flow of errors through result instead of relying exceptions
Apr 15, 2024
kamilbaczek
force-pushed
the
feature/error_handler
branch
from
May 2, 2024 18:29
02ab56a
to
cb815ea
Compare
kamilbaczek
commented
May 7, 2024
...ateBindingContract/BusinessRules/TerminationIsPossibleOnlyAfterThreeMonthsHavePassedTests.cs
Show resolved
Hide resolved
kamilbaczek
commented
May 11, 2024
...ign/Fitnet.Contracts/Src/Fitnet.Contracts.IntegrationTests/SignContract/SignContractTests.cs
Outdated
Show resolved
Hide resolved
kamilbaczek
commented
May 11, 2024
...tnet.Contracts/Src/Fitnet.Contracts.IntegrationTests/PrepareContract/PrepareContractTests.cs
Outdated
Show resolved
Hide resolved
kamilbaczek
commented
May 11, 2024
...tnet.Contracts/Src/Fitnet.Contracts.IntegrationTests/PrepareContract/PrepareContractTests.cs
Outdated
Show resolved
Hide resolved
kamilbaczek
commented
May 11, 2024
...Fitnet.Contracts/Src/Fitnet.Contracts.Core.UnitTests/PrepareContract/PrepareContractTests.cs
Show resolved
Hide resolved
kamilbaczek
commented
May 11, 2024
...-design/Fitnet.Contracts/Src/Fitnet.Contracts.Api/PrepareContract/PrepareContractEndpoint.cs
Outdated
Show resolved
Hide resolved
kamilbaczek
commented
May 11, 2024
...Fitnet.Contracts/Src/Fitnet.Contracts.Application/SignContract/SignContractCommandHandler.cs
Outdated
Show resolved
Hide resolved
kamilbaczek
changed the title
manage the flow of errors through result instead of relying exceptions
✨ manage the flow of errors through results instead of relying on exceptions.
May 11, 2024
meaboutsoftware
requested changes
May 18, 2024
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- It looks great! So similar to promises, I really like that approach. It is cool that it evolved to such form in comparison to the draft that we discussed previously :)
- You can move all the common logic to common package that we have for chapter 4 in a separate branch - it would be just great to do it ASAP as this one is merged.
- Some formatting issues.
Absolutely fantastic job!
...main-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.Api/Common/Errors/ProblemResults.cs
Outdated
Show resolved
Hide resolved
...et.Contracts.Application/AttachAnnexToBindingContract/AttachAnnexToBindingContractCommand.cs
Outdated
Show resolved
Hide resolved
...Fitnet.Contracts/Src/Fitnet.Contracts.Application/SignContract/SignContractCommandHandler.cs
Show resolved
Hide resolved
...Contracts/Src/Fitnet.Contracts.Core.UnitTests/Common/Assertions/ErrorOr/ErrorOrAssertions.cs
Show resolved
Hide resolved
...Contracts/Src/Fitnet.Contracts.Core.UnitTests/Common/Assertions/ErrorOr/ErrorOrAssertions.cs
Show resolved
Hide resolved
...Contracts/Src/Fitnet.Contracts.Core.UnitTests/Common/Assertions/ErrorOr/ErrorOrAssertions.cs
Outdated
Show resolved
Hide resolved
.../Fitnet.Contracts/Src/Fitnet.Contracts.Core.UnitTests/Fitnet.Contracts.Core.UnitTests.csproj
Outdated
Show resolved
Hide resolved
...esign/Fitnet.Contracts/Src/Fitnet.Contracts.Core.UnitTests/SignContract/SignContractTests.cs
Show resolved
Hide resolved
...en-design/Fitnet.Contracts/Src/Fitnet.Contracts.Core/Common/BussinessRules/BusinessErrors.cs
Outdated
Show resolved
Hide resolved
...gn/Fitnet.Contracts/Src/Fitnet.Contracts.Core/Common/BussinessRules/BusinessRuleValidator.cs
Show resolved
Hide resolved
meaboutsoftware
previously approved these changes
May 24, 2024
…property of the returned bindingContract
kamilbaczek
force-pushed
the
feature/error_handler
branch
from
May 24, 2024 19:12
e242559
to
51f082b
Compare
meaboutsoftware
approved these changes
May 24, 2024
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.
PR includes ✨
PR does not include ❌