private void ThrowOnNullCacheValue() { if (CacheValue == null) { throw Exceptions.CacheValueNotSet(resourceType: ResourceType, cacheKey: CacheKey); } }