js/errorHandler.js
Handles error display and developer tools prevention.
- Source:
Methods
(inner) handleErrorAndRedirect(message, codeopt)
Handles an error by storing the message and redirecting to the error page.
Parameters:
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
message |
string | The error message to display. | ||
code |
number | string |
<optional> |
404 | The error code to display. |
- Source: