mysqli_report(MYSQLI_REPORT_ERROR | MYSQLI_REPORT_STRICT); ...
try { $result = $this->link->real_escape_string( $this->link->query($query) ); } catch (Exception $e) { Service::error($e); } return $result; // option above should work exactly. Will the option work below? If yes, comment on it somehow .. The principle of triggering the exception is not very clear
try { return $this->link->real_escape_string( $this->link->query($query) ); } catch (Exception $e) { Service::error($e); }