We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Currently there is no easy way to throw errors inside loaders/actions. We should probably come up with an easy to use solution.
I have something like the following in my head:
<script context="module" ssr> import { NotFoundError, HttpError } from "svemix/errors" export const loader = () => { throw new NotFoundError("User not found"). throw new HttpError("Custom Error", { status: 401 }); } </script>
Which we could then make use of via instanceOf
instanceOf
--
No response
Would make life easier
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the bug
Currently there is no easy way to throw errors inside loaders/actions. We should probably come up with an easy to use solution.
I have something like the following in my head:
Which we could then make use of via
instanceOf
Your Example Website or App
--
Steps to Reproduce the Bug or Issue
--
Expected behavior
--
Screenshots or Videos
No response
Platform
Additional context
Would make life easier
The text was updated successfully, but these errors were encountered: