Skip to content

Commit

Permalink
Merge pull request #5 from RemarkableTools/dev
Browse files Browse the repository at this point in the history
Dev to Main
  • Loading branch information
axenteoctavian authored Jan 20, 2023
2 parents af8b6cd + 2d95998 commit 066621f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions src/Mx.NET.SDK/Domain/Exceptions/APIException.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@ public class APIException : Exception
public HttpStatusCode StatusCode { get; set; }
public string Error { get; set; }

public APIException(string message) : base(message)
{
StatusCode = HttpStatusCode.BadRequest;
Error = "API error";
}

public APIException(APIExceptionResponse apiResponse) : base(apiResponse.Message)
{
StatusCode = apiResponse.StatusCode;
Expand Down
2 changes: 1 addition & 1 deletion src/Mx.NET.SDK/Mx.NET.SDK.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<RepositoryUrl>https://github.com/RemarkableTools/Mx.NET.SDK</RepositoryUrl>
<RepositoryType>GitHub</RepositoryType>
<Company>Remarkable Tools</Company>
<Version>1.0.2</Version>
<Version>1.0.3</Version>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
<Title>RemarkableTools.Mx</Title>
<PackageReadmeFile>README.md</PackageReadmeFile>
Expand Down

0 comments on commit 066621f

Please sign in to comment.