-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: improved ErrorInformationExtensions
- Loading branch information
1 parent
8014546
commit 6c7979e
Showing
4 changed files
with
70 additions
and
1 deletion.
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
21 changes: 21 additions & 0 deletions
21
src/Wemogy.Core/Json/ExceptionInformation/ErrorExceptionInformation.cs
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
using Wemogy.Core.Errors.Enums; | ||
|
||
namespace Wemogy.Core.Json.ExceptionInformation | ||
{ | ||
public class ErrorExceptionInformation | ||
{ | ||
public ErrorType ErrorType { get; set; } | ||
public string Code { get; set; } | ||
public string Description { get; set; } | ||
|
||
public ErrorExceptionInformation( | ||
ErrorType errorType, | ||
string code, | ||
string description) | ||
{ | ||
ErrorType = errorType; | ||
Code = code; | ||
Description = description; | ||
} | ||
} | ||
} |
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