ErrorBoundary should catch custom Error #4179
alirezabonab
started this conversation in
Proposals
Replies: 2 comments 1 reply
-
There is an open PR to include the error |
Beta Was this translation helpful? Give feedback.
0 replies
-
The issue with PR is that it is not handling the |
Beta Was this translation helpful? Give feedback.
1 reply
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.
-
I have logics in the
ActionFunction
method that validates the form input. If the input is invalid, it will throw a Custom Error which extendsError
. TheCustomError
will have more detail about what was wrong and I want to get thatCustomError
in theErrorBoundary
method.I looked into the source code and it seems that it serializes and deserializes the error object and in the process of serialization and deserialization it only takes the
message
andstack
properties.It would be awesome to be able to catch Custom Errors through
ErrorBoundaries
cause there is no other way to get details about what happened in the ErrorBoundary right now.Beta Was this translation helpful? Give feedback.
All reactions