original_string: private function error($error) {
          if($this->logErrors) {
              $file = $this->logLocation.'db-errors.txt';
              $current = file_get_contents($file);
              $current .= date('d/m/Y H:i:s')." ERROR: ".$error->getMessage()." on ".$this->sql."\n";
              file_put_contents($file, $current); 
          }
          die($this->displayErrors ? 'ERROR: '.$error->getMessage().' on '.$this->sql : 0);
      }
code: private function error($error) {
          if($this->logErrors) {
              $file = $this->logLocation.'db-errors.txt';
              $current = file_get_contents($file);
              $current .= date('d/m/Y H:i:s')." ERROR: ".$error->getMessage()." on ".$this->sql."\n";
              file_put_contents($file, $current); 
          }
          die($this->displayErrors ? 'ERROR: '.$error->getMessage().' on '.$this->sql : 0);
      }
code_tokens: private function error ( $ error ) { if ( $ this -> logErrors ) { $ file = $ this -> logLocation . 'db-errors.txt' ; $ current = file_get_contents ( $ file ) ; $ current .= date ( 'd/m/Y H:i:s' ) . " ERROR: " . $ error -> getMessage ( ) . " on " . $ this -> sql . "\n" ; file_put_contents ( $ file , $ current ) ; } die ( $ this -> displayErrors ? 'ERROR: ' . $ error -> getMessage ( ) . ' on ' . $ this -> sql : 0 ) ; }
docstring: Displays the error massage which occurs
  @param \Exception $error This should be an instance of Exception
docstring_tokens: Displays the error massage which occurs