The hErrors.php helper provides essential error handling functions for Osclass. These functions are used to immediately stop script execution in case of critical errors and to generate absolute URLs that can be used for redirection or detailed error reporting.
osc_die($title, $message) – Terminates OSClass execution with an error message. Use this function to halt processing when a critical error occurs, providing both a title and a descriptive message.
osc_get_absolute_url() – Retrieves the absolute URL of the current page. This function is useful for generating full URLs that are independent of the current directory structure.