Skip to content

Conversation

@MIchaelMainer
Copy link
Contributor

No description provided.

- Match the specification as defined by the Microsoft API Guidelines
- Match the specification as defined by the [Microsoft API Guidelines](https://github.com/microsoft/api-guidelines/blob/07a1e42e3e33f94df782abfcbaec24b63968c120/Guidelines.md#5-taxonomy) for errors returned in API responses.
- Service errors SHOULD be defined in a class named ServiceException or ServiceError depending on the platform.
- Client errors SHOULD be defined in a class named ClientException or ClientError depending on the platform.
Copy link
Contributor

Choose a reason for hiding this comment

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

I suggest we should mention the class names with the Graph as a prefix here -
GraphClientException
GraphServiceException

- Match the specification as defined by the [Microsoft API Guidelines](https://github.com/microsoft/api-guidelines/blob/07a1e42e3e33f94df782abfcbaec24b63968c120/Guidelines.md#5-taxonomy) for errors returned in API responses.
- Service errors SHOULD be defined in a class named ServiceException or ServiceError depending on the platform.
- Client errors SHOULD be defined in a class named ClientException or ClientError depending on the platform.
- Client and service errors should use common properties according to the Microsoft API Guidelines.
Copy link
Contributor

Choose a reason for hiding this comment

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

Please add the json representation of the graph service error - https://docs.microsoft.com/en-us/graph/errors#json-representation

The ServiceException should capture these properties

@MIchaelMainer MIchaelMainer merged commit 6df8ff2 into master Jul 2, 2021
@MIchaelMainer MIchaelMainer deleted the mmainer/exceptions branch July 2, 2021 18:53
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.

2 participants