public function construct($message = "", $code = 0, $previous = null) { if ($code == 1045) { $this->ignoreLines = 5; } $msg = 'The MySQL database engine returned with an error' . ': "' . $message . '"'; parent::construct($msg, $code, $previous); }