Skip to content
New issue

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

Following Spark Features are not yet exposed #43

Open
nmondal opened this issue Aug 5, 2023 · 0 comments
Open

Following Spark Features are not yet exposed #43

nmondal opened this issue Aug 5, 2023 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers question Further information is requested

Comments

@nmondal
Copy link
Owner

nmondal commented Aug 5, 2023

  1. Custom "Page not found" handler
  2. Custom Exception class handling ( possibly needed to filter out anything which may disclose random info to hacker )
  3. Exception Mapping

All of these can be done easily with routes support as follows:

routes:
   errors:
        "404" :  _/not_found.js 
        "500" :  "Internal Server Error!"
        "*"  :     _/custom_error_handler.js 

https://sparkjava.com/documentation#error-handling
https://sparkjava.com/documentation#exception-mapping

@nmondal nmondal added enhancement New feature or request good first issue Good for newcomers question Further information is requested labels Aug 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant