Override the error exception in the init.php