private function init_whoops()
    {
        $whoops = new Run;
        $general = new General();
    
        $whoops->pushHandler($general->get_handler());
        $whoops->pushHandler(new Ajax());
        $whoops->pushHandler(new Rest_Api());

        $whoops->register();

        \ob_start();

        // Add to Service container.
        Container::add_instance($whoops);
    }