classes/phing/types/selectors/BaseSelector.php
public function setError($msg, Exception $cause = null)
    {
        if ($this->errmsg === null) {
            $this->errmsg = $msg;
            $this->cause = $cause;
        }
    }
public function setError($msg, Exception $cause = null)
    {
        if ($this->errmsg === null) {
            $this->errmsg = $msg;
            $this->cause = $cause;
        }
    }
public function setError ( $ msg , Exception $ cause = null ) { if ( $ this -> errmsg === null ) { $ this -> errmsg = $ msg ; $ this -> cause = $ cause ; } }
Allows all selectors to indicate a setup error. Note that only
the first error message is recorded.

@param string $msg The error message any BuildException should throw.
@param Exception $cause
Allows all selectors to indicate a setup error . Note that only the first error message is recorded .