src/DB/BaseConnection.php
protected function handleError( $errorCode, $errorMessage, $query )
	{
		if( $this->errorLevel )
		{
			$log = new \FS_File_Log_Writer( $this->logFile );
			$log->note( "[".$errorCode.": ".$errorMessage." in EXECUTE (\"".$query."\")]" );
			if( $this->errorLevel == 2 )
				trigger_error( $errorCode.": ".$errorMessage." in EXECUTE (\"".$query."\")", E_USER_WARNING );
			else if( $this->errorLevel == 3 )
				trigger_error( $errorCode.": ".$errorMessage." in EXECUTE (\"".$query."\")", E_USER_ERROR );
			else if( $this->errorLevel == 4 )
				throw new \Exception( $errorCode.": ".$errorMessage." in EXECUTE (\"".$query."\")" );
		}
	}
protected function handleError( $errorCode, $errorMessage, $query )
	{
		if( $this->errorLevel )
		{
			$log = new \FS_File_Log_Writer( $this->logFile );
			$log->note( "[".$errorCode.": ".$errorMessage." in EXECUTE (\"".$query."\")]" );
			if( $this->errorLevel == 2 )
				trigger_error( $errorCode.": ".$errorMessage." in EXECUTE (\"".$query."\")", E_USER_WARNING );
			else if( $this->errorLevel == 3 )
				trigger_error( $errorCode.": ".$errorMessage." in EXECUTE (\"".$query."\")", E_USER_ERROR );
			else if( $this->errorLevel == 4 )
				throw new \Exception( $errorCode.": ".$errorMessage." in EXECUTE (\"".$query."\")" );
		}
	}
protected function handleError ( $ errorCode , $ errorMessage , $ query ) { if ( $ this -> errorLevel ) { $ log = new \ FS_File_Log_Writer ( $ this -> logFile ) ; $ log -> note ( "[" . $ errorCode . ": " . $ errorMessage . " in EXECUTE (\"" . $ query . "\")]" ) ; if ( $ this -> errorLevel == 2 ) trigger_error ( $ errorCode . ": " . $ errorMessage . " in EXECUTE (\"" . $ query . "\")" , E_USER_WARNING ) ; else if ( $ this -> errorLevel == 3 ) trigger_error ( $ errorCode . ": " . $ errorMessage . " in EXECUTE (\"" . $ query . "\")" , E_USER_ERROR ) ; else if ( $ this -> errorLevel == 4 ) throw new \ Exception ( $ errorCode . ": " . $ errorMessage . " in EXECUTE (\"" . $ query . "\")" ) ; } }
Handles Error.
@access		protected
@param		int			$errorCode		Error Code
@param		string		$errorMessage	Error Message
@param		int			$query			Query with Error
@return		void
Handles Error .