-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(Problems): update method calls and improve code readability
- Replaced direct method calls with TypedResults class in ProblemExtensions.cs - Improved code readability by adjusting comment indentation and formatting - Updated the documentation comments for better clarity in ProblemException.cs and ProblemExtensions.cs
- Loading branch information
1 parent
e58d02a
commit 2b6bff0
Showing
3 changed files
with
19 additions
and
19 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
namespace ES.FX.Problems; | ||
|
||
/// <summary> | ||
/// Exception that is thrown when a <see cref="Problem"/> occurs. Contains the <see cref="Problem"/> that occured. | ||
/// Exception that is thrown when a <see cref="Problem" /> occurs. Contains the <see cref="Problem" /> that occured. | ||
/// </summary> | ||
/// <param name="problem">The <see cref="Problem"/></param> | ||
/// <param name="problem">The <see cref="Problem" /></param> | ||
public class ProblemException(Problem problem) | ||
: Exception($"A problem of type '{problem.Type}' occured. See '{nameof(Problem)}' for more details") | ||
{ | ||
/// <summary> | ||
/// The source <see cref="Problem"/> | ||
/// The source <see cref="Problem" /> | ||
/// </summary> | ||
public Problem Problem { get; } = problem; | ||
} |
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