private function _getError($code, $resourceId = false) {
        $error = $this->_errorCodes[$code];
        $error->resourceId = $resourceId;
        $this->resetDepenencyCheck();
        return $error;
    }