Last active
February 8, 2023 20:28
-
-
Save maisarissi/0456cd4a781843f560eda0209b17bad6 to your computer and use it in GitHub Desktop.
msgraph-dotnet-v5-rc-error-handling
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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