Throw exception instead of deleting cache when the dependency mapping is invalid