Skip to content

Conversation

@MIchaelMainer
Copy link
Collaborator

modified: src/Microsoft.Graph.Core/Exceptions/Error.cs

Added Target, Details, and ClientRequestId properties and updated the
ToString() method.

new file: src/Microsoft.Graph.Core/Exceptions/ErrorDetails.cs

Supports the Error.Details property per OData spec, 9.4 Error Response Body details object.
http://docs.oasis-open.org/odata/odata/v4.01/csprd05/part1-protocol/odata-v4.01-csprd05-part1-protocol.html#_Toc14172757

modified: src/Microsoft.Graph.Core/Exceptions/ServiceException.cs

Added support for adding the raw response body.

modified: src/Microsoft.Graph.Core/Requests/HttpProvider.cs

Added support for adding the raw response body and ClientRequestId for
ServiceExceptions.

modified: tests/Microsoft.Graph.DotnetCore.Core.Test/Exceptions/ErrorTests.cs
modified: tests/Microsoft.Graph.DotnetCore.Core.Test/Requests/HttpProviderTests.cs

Addresses

**modified:   src/Microsoft.Graph.Core/Exceptions/Error.cs**

Added Target, Details, and ClientRequestId properties and updated the
ToString() method.

**new file:   src/Microsoft.Graph.Core/Exceptions/ErrorDetails.cs**

Supports the Error.Details property per OData spec.

**modified:   src/Microsoft.Graph.Core/Exceptions/ServiceException.cs**

Added support for adding the raw response body.

**modified:   src/Microsoft.Graph.Core/Requests/HttpProvider.cs**

Added support for adding the raw response body and ClientRequestId for
ServiceExceptions.

modified:   tests/Microsoft.Graph.DotnetCore.Core.Test/Exceptions/ErrorTests.cs
modified:   tests/Microsoft.Graph.DotnetCore.Core.Test/Requests/HttpProviderTests.cs

**Addresses**

* Fixes #23
* Fixes microsoftgraph/msgraph-sdk-dotnet#316
Copy link
Contributor

@andrueastman andrueastman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Save for the question on the additional constructor in the ServiceException class, this looks good to me really.

…eption cstor, fixed typo in change summary, added HttpContent.LoadIntoBufferAsync so we can read the stream twice, updated tests.
@MIchaelMainer MIchaelMainer merged commit 9c89457 into dev Oct 1, 2019
MIchaelMainer added a commit that referenced this pull request Oct 10, 2019
Merge pull request #44 from microsoftgraph/dev
- Add SimpleHttpProvider for GraphClientFactory compatibility
- Adds tests to validate similar behavior to HttpProvider
- Add modified checks to not authenticate SimpleHttprovider when authprovider is presents
- Bumps up version number.
- Improve ServiceException/Error class information (#37)
- Updates release notes
- Added Target, Details, and ClientRequestId properties and updated the ToString() method.
- Added support for adding the raw response body.
@MIchaelMainer MIchaelMainer deleted the mm/provideRawErrorDetails branch March 31, 2020 18:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Developers get access to all actionable information in exception classes Key Info Loss in Error & Exception Analyzing, please refine your Classes.

5 participants