Whats the recommended approach to throw custom exceptions? #2071
Unanswered
brionmario
asked this question in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi Community,
We have started migrating our Identity Apps Repo (WSO2 Identity Server Apps) to SWR.
We have written our API function as follows. Where we throw custom exceptions when an error occurs.
And for migration, we have adopted the
reusable hooks
approach and have written the hooks like this.My question is, what's the recommended approach for throwing these exceptions.
Beta Was this translation helpful? Give feedback.
All reactions