-
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.
feat: #181 Remove exception serialization
- Loading branch information
1 parent
b4f4905
commit 0b14747
Showing
3 changed files
with
18 additions
and
32 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,14 @@ | ||
using System; | ||
|
||
namespace ClashOfClans.Models | ||
namespace ClashOfClans.Models | ||
{ | ||
/// <summary> | ||
/// Error message from the endpoint | ||
/// </summary> | ||
[Serializable] | ||
public class ClientError | ||
{ | ||
public string Reason { get; set; } = default!; | ||
|
||
public string Message { get; set; } = default!; | ||
|
||
public override string ToString() => $"Reason '{Reason}', message '{Message}'"; | ||
} | ||
} |
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