how to redirect on server error ? #10003
Unanswered
HananoshikaYomaru
asked this question in
Q&A
Replies: 1 comment
-
How about using a wrapper function that wraps the process that might throw a ZError with a try...catch, and if a ZError is caught, redirects accordingly? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
let me describe what I want to do. I have a specific type of error (called it
ZError
) which could thrown deep inside the code, so sometimes it is uncaught. I want to handle it in the outer most layer. If it isZError
, redirect the user to a specific page. How can I achieve something like this without wrapping every loader with a try catch?Beta Was this translation helpful? Give feedback.
All reactions