public function setError($code, $description)
    {
        $error = new stdClass;
        $error->code = $code;
        $error->description = $description;

        $this->errors[] = $error;
    }
public function setError($code, $description)
    {
        $error = new stdClass;
        $error->code = $code;
        $error->description = $description;

        $this->errors[] = $error;
    }
public function setError ( $ code , $ description ) { $ error = new stdClass ; $ error -> code = $ code ; $ error -> description = $ description ; $ this -> errors [ ] = $ error ; }
Set a error

@param  string  $code
@param  string  $description
@return void
Set a error