includes/phing/src/Tasks/SymlinkPropertyContentTask.php
private function _failOnErrorAction(Exception $exception = null, $message = '', $level = Project::MSG_INFO)
    {
        if ($this->_failonerror) {
            throw new BuildException(
                $exception !== null ? $exception : $message,
                $this->getLocation()
            );
        } else {
            $this->log(
                $exception !== null && $message === '' ? $exception->getMessage() : $message,
                $level
            );
        }
    }
private function _failOnErrorAction(Exception $exception = null, $message = '', $level = Project::MSG_INFO)
    {
        if ($this->_failonerror) {
            throw new BuildException(
                $exception !== null ? $exception : $message,
                $this->getLocation()
            );
        } else {
            $this->log(
                $exception !== null && $message === '' ? $exception->getMessage() : $message,
                $level
            );
        }
    }
private function _failOnErrorAction ( Exception $ exception = null , $ message = '' , $ level = Project :: MSG_INFO ) { if ( $ this -> _failonerror ) { throw new BuildException ( $ exception !== null ? $ exception : $ message , $ this -> getLocation ( ) ) ; } else { $ this -> log ( $ exception !== null && $ message === '' ? $ exception -> getMessage ( ) : $ message , $ level ) ; } }
Throw exception if error found.

@param Exception $exception Exception to throw
@param string    $message   Message to display
@param int       $level     Exception level

@throws BuildException

@return void
Throw exception if error found .