set_error_handler(handler) {
        if (typeof handler !== 'function') throw new Error('HyperExpress: handler must be a function');
        this.#handlers.on_error = handler;
    }
Sets a global error handler which will catch most uncaught errors across all routes/middlewares.

@param {RouteErrorHandler} handler