Skip to content

Correct way to handle "AccessDenied" and other errors #1211

Answered by ysaito1001
echelonh asked this question in Q&A
Discussion options

You must be logged in to vote

While this isn't strictly a type-based approach, one way to determine if the returned service error is related to AccessDenied is by examining the DisplayErrorContext. These are examples in our repository showing how you can use it. You should then be able to search for an error string like AccessDenied.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@echelonh
Comment options

@ysaito1001
Comment options

@echelonh
Comment options

Answer selected by jmklix
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants