public function setError($code, $node, $message = '')
    {
        $this->errorCode = $code;
        $this->errorNode = $node;
        $this->errorMessage = $message;
    }
public function setError($code, $node, $message = '')
    {
        $this->errorCode = $code;
        $this->errorNode = $node;
        $this->errorMessage = $message;
    }
public function setError ( $ code , $ node , $ message = '' ) { $ this -> errorCode = $ code ; $ this -> errorNode = $ node ; $ this -> errorMessage = $ message ; }
Sets error.

@param int    $code
@param string $message
Sets error .