public function throwExceptionIfErrors($sqlStatement)
    {
        if ((int) $sqlStatement->errorCode()) {
            throw new \Exception(
                print_r($sqlStatement->errorInfo(), true)
            );
        }

        return false;
    }