protected function setError($code, $message)
    {
        $this->error = new \OtherCode\Rest\Core\Error($code, $message);
    }
protected function setError($code, $message)
    {
        $this->error = new \OtherCode\Rest\Core\Error($code, $message);
    }
protected function setError ( $ code , $ message ) { $ this -> error = new \ OtherCode \ Rest \ Core \ Error ( $ code , $ message ) ; }
Set the error code and message if exists
@param $code
@param $message
Set the error code and message if exists