CI4 Jogue nova exceção
throw new \CodeIgniter\Database\Exceptions\DatabaseException();
Matteoweb
throw new \CodeIgniter\Database\Exceptions\DatabaseException();