Skip to content

Instantly share code, notes, and snippets.

@maisarissi
Last active February 8, 2023 20:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save maisarissi/0456cd4a781843f560eda0209b17bad6 to your computer and use it in GitHub Desktop.
Save maisarissi/0456cd4a781843f560eda0209b17bad6 to your computer and use it in GitHub Desktop.
msgraph-dotnet-v5-rc-error-handling
try
{
await graphServiceClient.Me.PatchAsync(user);
}
catch (ODataError odataError)
{
Console.WriteLine(odataError.Error.Code);
Console.WriteLine(odataError.Error.Message);
throw;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment