private function _getError($code, $resourceId = false) {
        $error = $this->_errorCodes[$code];
        $error->resourceId = $resourceId;
        $this->resetDepenencyCheck();
        return $error;
    }
private function _getError($code, $resourceId = false) {
        $error = $this->_errorCodes[$code];
        $error->resourceId = $resourceId;
        $this->resetDepenencyCheck();
        return $error;
    }
private function _getError ( $ code , $ resourceId = false ) { $ error = $ this -> _errorCodes [ $ code ] ; $ error -> resourceId = $ resourceId ; $ this -> resetDepenencyCheck ( ) ; return $ error ; }
This method returns an error object based on the code sets the resourceId.
@param $code interger The error code you would like the associate with the error.
@param $resourceId string The resourceId identified that caused the error.
@return object The error object that represents the runtime error.
This method returns an error object based on the code sets the resourceId .