Skip to content

Commit

Permalink
Merge pull request #315 from notion-dotnet/fix-notion-api-parsing
Browse files Browse the repository at this point in the history
fix notion api error message parsing
  • Loading branch information
KoditkarVedant authored Sep 1, 2022
2 parents 55e27a6 + 95ffdd3 commit 79c1f63
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Src/Notion.Client/NotionApiErrorResponse.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
namespace Notion.Client
using Newtonsoft.Json;

namespace Notion.Client
{
class NotionApiErrorResponse
{
[JsonProperty("code")]
public NotionAPIErrorCode ErrorCode { get; set; }

[JsonProperty("message")]
public string Message { get; set; }
}
}

0 comments on commit 79c1f63

Please sign in to comment.