Skip to content

Commit

Permalink
Merge pull request #68 from microsoft/feature/error-status-code
Browse files Browse the repository at this point in the history
- adds the status code to api exception
  • Loading branch information
baywet committed Feb 3, 2023
2 parents 8ab5259 + 84cb7f4 commit ff77775
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Changed

## [1.0.0-rc.7] - 2023-02-03

### Added

- Added a status code field to the API exception class.

## [1.0.0-rc.6] - 2023-01-27

### Changed
Expand Down
4 changes: 4 additions & 0 deletions src/ApiException.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,8 @@ public ApiException(string message) : base(message)
public ApiException(string message, Exception innerException) : base(message, innerException)
{
}
/// <summary>
/// The HTTP response status code.
/// </summary>
public int ResponseStatusCode { get; set; }
}
2 changes: 1 addition & 1 deletion src/Microsoft.Kiota.Abstractions.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<EmbedUntrackedSources>true</EmbedUntrackedSources>
<Deterministic>true</Deterministic>
<VersionPrefix>1.0.0</VersionPrefix>
<VersionSuffix>rc.6</VersionSuffix>
<VersionSuffix>rc.7</VersionSuffix>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<SignAssembly>false</SignAssembly>
<DelaySign>false</DelaySign>
Expand Down

0 comments on commit ff77775

Please sign in to comment.