Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
usercode authored Jun 5, 2024
1 parent ea4cdad commit 350e206
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,8 @@ Result<int> result2 = await httpClient.GetAsync("/").ReadResultFromJsonAsync<int
```csharp
public class PermissionError : IError { }

Error.Register<PermissionError>();

Result result = Result.Failed(new PermissionError("Error"));

string json = JsonSerializer.Serialize(result);
Expand Down

0 comments on commit 350e206

Please sign in to comment.