Error Handling

Error handling

Client-side JavaScript errors are centrally managed in /app/error.tsx, providing a seamless experience for error handling. When an error occurs, the user is directed to an error page, as depicted below:

Error Page

To report the error, users can utilize the Contact Us button, which redirects them to the /contact page. On the contact page, the message input field is automatically populated with details of the error, simplifying the process of reporting.

Contact Page

For more granular control over error handling, you have the option to create an error.tsx file at the page level. Refer to the Next.js error handling documentation for detailed information.